diff options
author | Rebecca Turner <me@re-becca.org> | 2017-05-25 14:52:53 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-05-26 04:55:32 +0300 |
commit | 3ada941d6eb94b3b0920d8b6d6db7d1bdcfd8876 (patch) | |
tree | f1ffe14c968d30af4934d8a931e38079739e9498 /lib | |
parent | 237a1cfb9964e14662419820e2faca44dadf6391 (diff) |
install: no need to install non-requested deps
Previously we were doing this so we could load relationships, but now we can
simply request no fake children. This forces a fetch-metadata phase for the
lockfile, but does not actually install all the modules.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/install.js | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/lib/install.js b/lib/install.js index d3a913245..46082ad46 100644 --- a/lib/install.js +++ b/lib/install.js @@ -424,18 +424,19 @@ Installer.prototype.loadAllDepsIntoIdealTree = function (cb) { if (installNewModules) { steps.push([validateArgs, this.idealTree, this.args]) steps.push([loadRequestedDeps, this.args, this.idealTree, saveDeps, cg.newGroup('loadRequestedDeps')]) - } - if (this.prod || this.dev) { - steps.push( - [prefetchDeps, this.idealTree, depsToPreload, cg.newGroup('prefetchDeps')]) - } - if (this.prod) { - steps.push( - [loadDeps, this.idealTree, cg.newGroup('loadDeps')]) - } - if (this.dev) { - steps.push( - [loadDevDeps, this.idealTree, cg.newGroup('loadDevDeps')]) + } else { + if (this.prod || this.dev) { + steps.push( + [prefetchDeps, this.idealTree, depsToPreload, cg.newGroup('prefetchDeps')]) + } + if (this.prod) { + steps.push( + [loadDeps, this.idealTree, cg.newGroup('loadDeps')]) + } + if (this.dev) { + steps.push( + [loadDevDeps, this.idealTree, cg.newGroup('loadDevDeps')]) + } } steps.push( [loadExtraneous.andResolveDeps, this.idealTree, cg.newGroup('loadExtraneous')]) |