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:
authorRebecca Turner <me@re-becca.org>2015-04-20 13:19:46 +0300
committerRebecca Turner <me@re-becca.org>2015-06-26 03:26:54 +0300
commit1130446fc92dbebbe8bcb34924daed20f6fa85ca (patch)
treefdd8afd284cfc3a073c1a43fb3df06d2fc9caa3e /lib/install.js
parent6496ce79ff57e09a50676173548bbe9257a42a7c (diff)
(Mostly) ignore shrinkwraps when installing modules from arguments
Diffstat (limited to 'lib/install.js')
-rw-r--r--lib/install.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js
index 1eebc88f0..32d9b1063 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -435,7 +435,12 @@ Installer.prototype.cloneCurrentTreeToIdealTree = function (cb) {
Installer.prototype.loadShrinkwrap = function (cb) {
validate('F', arguments)
log.silly('install', 'loadShrinkwrap')
- readShrinkwrap(this.idealTree, cb)
+ var installNewModules = !!this.args.length
+ if (installNewModules) {
+ readShrinkwrap(this.idealTree, cb)
+ } else {
+ readShrinkwrap.andInflate(this.idealTree, cb)
+ }
}
Installer.prototype.normalizeTree = function (log, cb) {