diff --git a/lib/index.js b/lib/index.js index bb8c246..5b7ea68 100644 --- a/lib/index.js +++ b/lib/index.js @@ -506,10 +506,9 @@ class Config { } [_checkDeprecated] (key, where, obj, kv) { - // XXX a future npm version will make this a warning. - // An even more future npm version will make this an error. + // XXX(npm9+) make this throw an error if (this.deprecated[key]) { - log.verbose('config', key, this.deprecated[key]) + log.warn('config', key, this.deprecated[key]) } } diff --git a/test/index.js b/test/index.js index d480480..869cc71 100644 --- a/test/index.js +++ b/test/index.js @@ -355,7 +355,7 @@ loglevel = yolo ['warn', 'invalid config', 'Must be one or more', 'numeric value'], ['warn', 'invalid config', 'prefix=true', 'set in command line options'], ['warn', 'invalid config', 'Must be', 'valid filesystem path'], - ['verbose', 'config', 'also', 'Please use --include=dev instead.'], + ['warn', 'config', 'also', 'Please use --include=dev instead.'], ['warn', 'invalid config', 'loglevel="yolo"', `set in ${resolve(path, 'project/.npmrc')}`], ['warn', 'invalid config', 'Must be one of:', @@ -506,7 +506,7 @@ loglevel = yolo ['warn', 'invalid config', 'Must be one or more', 'numeric value'], ['warn', 'invalid config', 'prefix=true', 'set in command line options'], ['warn', 'invalid config', 'Must be', 'valid filesystem path'], - ['verbose', 'config', 'also', 'Please use --include=dev instead.'], + ['warn', 'config', 'also', 'Please use --include=dev instead.'], ]) })