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:
authorisaacs <i@izs.me>2020-08-01 02:57:12 +0300
committerisaacs <i@izs.me>2020-08-04 11:03:34 +0300
commit53a888e64a0a912b086b26e2d1bcd5e52ae0b970 (patch)
tree854be0ad3a5a7d967c7eea2bb3c3564650ab97fc
parent4309661dd5b32a694bf5cefff99da62072055b4b (diff)
update: depth defaults to 0 now, not Infinity
-rw-r--r--lib/update.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/update.js b/lib/update.js
index 16b51d418..c86ca7d85 100644
--- a/lib/update.js
+++ b/lib/update.js
@@ -27,7 +27,7 @@ const update = async args => {
? global
: npm.prefix
- if (npm.flatOptions.depth !== Infinity) {
+ if (npm.flatOptions.depth) {
log.warn('update', 'The --depth option no longer has any effect. See RFC0019.\n' +
'https://github.com/npm/rfcs/blob/latest/accepted/0019-remove-update-depth-option.md')
}