diff --git a/.changeset/early-eyes-float.md b/.changeset/early-eyes-float.md new file mode 100644 index 000000000..480cc0a36 --- /dev/null +++ b/.changeset/early-eyes-float.md @@ -0,0 +1,5 @@ +--- +'@verdaccio/types': patch +--- + +chore: add `error` to log level enum diff --git a/packages/core/types/src/configuration.ts b/packages/core/types/src/configuration.ts index 8c2c48bd1..676d55207 100644 --- a/packages/core/types/src/configuration.ts +++ b/packages/core/types/src/configuration.ts @@ -17,13 +17,13 @@ export interface Logger { export type LoggerType = 'stdout' | 'file'; export type LoggerFormat = 'pretty' | 'pretty-timestamped' | 'json'; -export type LoggerLevel = 'http' | 'fatal' | 'warn' | 'info' | 'debug' | 'trace'; +export type LoggerLevel = 'fatal' | 'error' | 'warn' | 'info' | 'http' | 'debug' | 'trace'; export type LoggerConfigItem = { type?: LoggerType; format?: LoggerFormat; path?: string; - level?: string; + level?: LoggerLevel; colors?: boolean; async?: boolean; };