You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exports[`test/lib/commands/config.js TAP config list with publishConfig local > warns about unknown config 1`]=`
453
453
Array [
454
-
"Unknown publishConfig config /"other/". This will stop working in the next major version of npm.",
454
+
"Unknown publishConfig config /"other/". This will stop working in the next major version of npm. See \`npm help npmrc\` for supported config options.",
t.same(logs.warn,['Unknown publishConfig config "other". This will stop working in the next major version of npm.'])
58
+
t.same(logs.warn,['Unknown publishConfig config "other". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'])
59
59
})
60
60
61
61
t.test('re-loads publishConfig.registry if added during script process',asynct=>{
Copy file name to clipboardExpand all lines: workspaces/config/test/index.js
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -381,8 +381,8 @@ loglevel = yolo
381
381
// warn logs are emitted as a side effect of validate
382
382
config.validate()
383
383
t.strictSame(logs.filter(l=>l[0]==='warn'),[
384
-
['warn','Unknown builtin config "builtin-config". This will stop working in the next major version of npm.'],
385
-
['warn','Unknown builtin config "foo". This will stop working in the next major version of npm.'],
384
+
['warn','Unknown builtin config "builtin-config". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
385
+
['warn','Unknown builtin config "foo". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
386
386
['warn','invalid config','registry="hello"','set in command line options'],
387
387
['warn','invalid config','Must be','full url with "http://"'],
388
388
['warn','invalid config','proxy="hello"','set in command line options'],
@@ -399,13 +399,13 @@ loglevel = yolo
399
399
['warn','invalid config','prefix=true','set in command line options'],
['warn','config','also','Please use --include=dev instead.'],
402
-
['warn','Unknown env config "foo". This will stop working in the next major version of npm.'],
403
-
['warn','Unknown project config "project-config". This will stop working in the next major version of npm.'],
404
-
['warn','Unknown project config "foo". This will stop working in the next major version of npm.'],
405
-
['warn','Unknown user config "user-config-from-builtin". This will stop working in the next major version of npm.'],
406
-
['warn','Unknown user config "foo". This will stop working in the next major version of npm.'],
407
-
['warn','Unknown global config "global-config". This will stop working in the next major version of npm.'],
408
-
['warn','Unknown global config "foo". This will stop working in the next major version of npm.'],
402
+
['warn','Unknown env config "foo". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
403
+
['warn','Unknown project config "project-config". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
404
+
['warn','Unknown project config "foo". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
405
+
['warn','Unknown user config "user-config-from-builtin". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
406
+
['warn','Unknown user config "foo". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
407
+
['warn','Unknown global config "global-config". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
408
+
['warn','Unknown global config "foo". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
409
409
['warn','invalid config','loglevel="yolo"',`set in ${resolve(path,'project/.npmrc')}`],
['warn','config','also','Please use --include=dev instead.'],
603
-
['warn','Unknown env config "foo". This will stop working in the next major version of npm.'],
604
-
['warn','Unknown user config "default-user-config-in-home". This will stop working in the next major version of npm.'],
605
-
['warn','Unknown user config "foo". This will stop working in the next major version of npm.'],
606
-
['warn','Unknown global config "global-config". This will stop working in the next major version of npm.'],
607
-
['warn','Unknown global config "foo". This will stop working in the next major version of npm.'],
608
-
['warn','Unknown global config "asdf". This will stop working in the next major version of npm.'],
603
+
['warn','Unknown env config "foo". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
604
+
['warn','Unknown user config "default-user-config-in-home". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
605
+
['warn','Unknown user config "foo". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
606
+
['warn','Unknown global config "global-config". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
607
+
['warn','Unknown global config "foo". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
608
+
['warn','Unknown global config "asdf". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.'],
0 commit comments