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
path: root/lib/utils
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-10-23 20:10:33 +0300
committerisaacs <i@izs.me>2020-10-23 20:10:33 +0300
commitcc026daf8c8330256de01375350a1407064562f9 (patch)
tree3a46035ac764d68671d4010d5677329540828d4a /lib/utils
parentcb99e52aff2aaeef8fa024f3365a4ed39f15d2b1 (diff)
docs: npm-dedupe through npm-install
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/flat-options.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/utils/flat-options.js b/lib/utils/flat-options.js
index 721bbbde7..1e169535a 100644
--- a/lib/utils/flat-options.js
+++ b/lib/utils/flat-options.js
@@ -164,7 +164,9 @@ const flatOptions = npm => npm.flatOptions || Object.freeze({
// configs that affect how we build trees
binLinks: npm.config.get('bin-links'),
rebuildBundle: npm.config.get('rebuild-bundle'),
- packageLock: npm.config.get('package-lock'),
+ // --no-shrinkwrap is the same as --no-package-lock
+ packageLock: npm.config.get('package-lock') === false ||
+ npm.config.get('shrinkwrap') === false ? false : true,
packageLockOnly: npm.config.get('package-lock-only'),
globalStyle: npm.config.get('global-style'),
legacyBundling: npm.config.get('legacy-bundling'),