diff options
author | Rebecca Turner <me@re-becca.org> | 2015-04-20 13:19:46 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-06-26 03:26:54 +0300 |
commit | 1130446fc92dbebbe8bcb34924daed20f6fa85ca (patch) | |
tree | fdd8afd284cfc3a073c1a43fb3df06d2fc9caa3e /lib/install.js | |
parent | 6496ce79ff57e09a50676173548bbe9257a42a7c (diff) |
(Mostly) ignore shrinkwraps when installing modules from arguments
Diffstat (limited to 'lib/install.js')
-rw-r--r-- | lib/install.js | 7 |
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) { |