diff options
author | isaacs <i@izs.me> | 2013-05-30 21:05:59 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-05-30 21:05:59 +0400 |
commit | bf81dc6385fbe327917b8ae5f95f83edfe61b581 (patch) | |
tree | 3a6a2461019e5395fbc4330722f3321bad15a220 | |
parent | 6f086511eafcd881dada68508adfa673578e351e (diff) |
install: Ignore shrinkwrap when --no-shrinkwrap is set
-rw-r--r-- | doc/cli/config.md | 8 | ||||
-rw-r--r-- | lib/install.js | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/cli/config.md b/doc/cli/config.md index fa3e7bcc2..54133bec3 100644 --- a/doc/cli/config.md +++ b/doc/cli/config.md @@ -721,6 +721,14 @@ character to indicate reverse sort. The shell to run for the `npm explore` command. +### shrinkwrap + +* Default: true +* Type: Boolean + +If set to false, then ignore `npm-shrinkwrap.json` files when +installing. + ### sign-git-tag * Default: false diff --git a/lib/install.js b/lib/install.js index dc2a2aead..50ba5ebc5 100644 --- a/lib/install.js +++ b/lib/install.js @@ -250,6 +250,10 @@ function readDependencies (context, where, opts, cb) { }) } + // User has opted out of shrinkwraps entirely + if (npm.config.get("shrinkwrap") === false) + return cb(null, data, null) + if (wrap) { log.verbose("readDependencies: using existing wrap", [where, wrap]) var rv = {} |