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:
authorKat Marchán <kzm@sykosomatic.org>2017-05-25 04:12:07 +0300
committerRebecca Turner <me@re-becca.org>2017-05-26 04:55:29 +0300
commitde3383079372c10c8316dcae764a467348e80778 (patch)
tree1c10d53687aab81187c0e6604d922777e0db5fb0 /lib
parentee97f8bad45cb1adfa71158cc54eeb5577041dc9 (diff)
install: call saveRequested even if no changes, to regenerate package-lock
Diffstat (limited to 'lib')
-rw-r--r--lib/install.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/install.js b/lib/install.js
index cd64dc805..e7546cdac 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -588,14 +588,7 @@ Installer.prototype.saveToDependencies = function (cb) {
validate('F', arguments)
if (this.failing) return cb()
log.silly('install', 'saveToDependencies')
- if (
- this.differences.length ||
- (this.idealTree.removedChildren || []).length
- ) {
- saveRequested(this.idealTree, cb)
- } else {
- cb()
- }
+ saveRequested(this.idealTree, cb)
}
Installer.prototype.readGlobalPackageData = function (cb) {