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>2017-09-14 20:11:57 +0300
committerRebecca Turner <me@re-becca.org>2017-09-14 20:11:59 +0300
commitcd8687e1257f59a253436d69e8d79a29c85d00c8 (patch)
treeef7bfc350100cd566bd87a9b4f11cb7dc45ed5f7
parent3a1b299913ce94fdf25ed3ae5c88fe6699b04e24 (diff)
move: Stop writing package.json
Now that we have a refresh-package-json phase, full package data is not available in the move phase, so writing here deletes important info. Beyond that, the `refresh-package-json` phase takes care of the writing for us.
-rw-r--r--lib/install/action/move.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/install/action/move.js b/lib/install/action/move.js
index a3b50a6f1..b0e024b4c 100644
--- a/lib/install/action/move.js
+++ b/lib/install/action/move.js
@@ -25,8 +25,7 @@ module.exports = function (staging, pkg, log, next) {
[lifecycle, pkg.package, 'postuninstall', pkg.fromPath, { failOk: true }],
[moveModuleOnly, pkg.fromPath, pkg.path, log],
[lifecycle, pkg.package, 'preinstall', pkg.path, { failOk: true }],
- [removeEmptyParents, path.resolve(pkg.fromPath, '..')],
- [updatePackageJson, pkg, pkg.path]
+ [removeEmptyParents, path.resolve(pkg.fromPath, '..')]
], next)
}