diff options
author | Rebecca Turner <me@re-becca.org> | 2017-07-14 05:31:20 +0300 |
---|---|---|
committer | Kat Marchán <kzm@sykosomatic.org> | 2017-07-14 07:21:25 +0300 |
commit | 51a9e63d31cb5ac52259dcf1c364004286072426 (patch) | |
tree | 959a4dfdf76fa221270a18099ab25cecff164126 /lib | |
parent | 41a09439e7088109122f101995e33717853a9684 (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.js | 2 |
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) }) } |