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-25 20:38:24 +0300
committerRebecca Turner <me@re-becca.org>2015-06-26 03:26:54 +0300
commiteb03fd94b8c869b28042e97f04322d2e76d914c6 (patch)
tree00972b88c10aedd577f656ce5b0553aa9ec854f9 /lib/install.js
parent3d180ea9416a86a1200b0c4bf4be410bbc6c2e31 (diff)
Explicitly recalculate ideal tree metadata prior to tree pruning
Diffstat (limited to 'lib/install.js')
-rw-r--r--lib/install.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/install.js b/lib/install.js
index ef320da82..0c64bc68a 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -269,6 +269,8 @@ Installer.prototype.loadIdealTree = function (cb) {
[this, this.loadShrinkwrap],
[this, this.finishTracker, 'loadShrinkwrap'],
[this, this.loadAllDepsIntoIdealTree],
+ [this, function (next) { recalculateMetadata(this.idealTree, log, next) } ],
+ [this, this.debugTree, 'idealTree:prePrune', 'idealTree'],
[this, function (next) { next(pruneTree(this.idealTree)) } ]
], cb)
}