Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuy Adorno <ruyadorno@hotmail.com>2021-03-23 00:48:26 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2021-03-23 00:48:26 +0300
commit15ee1aec3675bc026fc360f81b04bae4db84d942 (patch)
tree7f0b72d9c73e2cf40aa1c3b06ff23b96925022b3 /tap-snapshots
parent93a061d737dc769663652368e8586e4202267b9e (diff)
fix: yes config
`npm exec <pkg>` was failing for packages not available in the local or global scope due to the default value of the `yes` config having been changed to `false` during the latest config refactor. That caused `npm exec` to throw with a `canceled` error message since the current implementation expects the default value to be falsy but not `false`. This change reinstates the previous default config value for `yes` and changes the implementation to throw with a proper error object in order to get a stack trace when running with `--loglevel=verbose`.
Diffstat (limited to 'tap-snapshots')
-rw-r--r--tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js b/tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js
index 10cc2b238..8323e793e 100644
--- a/tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js
+++ b/tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js
@@ -1222,8 +1222,8 @@ workspaces.
#### \`yes\`
-* Default: false
-* Type: Boolean
+* Default: null
+* Type: null or Boolean
Automatically answer "yes" to any prompts that npm might print on the
command line.