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
path: root/lib
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2017-07-14 05:31:20 +0300
committerKat Marchán <kzm@sykosomatic.org>2017-07-14 07:21:25 +0300
commit51a9e63d31cb5ac52259dcf1c364004286072426 (patch)
tree959a4dfdf76fa221270a18099ab25cecff164126 /lib
parent41a09439e7088109122f101995e33717853a9684 (diff)
decompose-actions: Update should remove the OLD pkg, add the new (#17777)
PR-URL: https://github.com/npm/npm/pull/17777 Credit: @iarna Reviewed-By: @zkat
Diffstat (limited to 'lib')
-rw-r--r--lib/install/decompose-actions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install/decompose-actions.js b/lib/install/decompose-actions.js
index 24797f26e..57dc7cd68 100644
--- a/lib/install/decompose-actions.js
+++ b/lib/install/decompose-actions.js
@@ -46,7 +46,7 @@ function addSteps (decomposed, pkg, done) {
}
function updateSteps (decomposed, pkg, done) {
- removeSteps(decomposed, pkg, () => {
+ removeSteps(decomposed, pkg.oldPkg, () => {
addSteps(decomposed, pkg, done)
})
}