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-12-19 12:31:40 +0300
committerRebecca Turner <me@re-becca.org>2018-02-02 02:42:56 +0300
commit3b305ee71e2bf852ff3037366a1774b8c5fcc0a5 (patch)
treed6a8f80750b6f038952e2847974de10d3be2551e /lib/prune.js
parent8c73405c5b7ca69f4025861a968e75e4078115c4 (diff)
install: Only autoprune on install with lock file
Diffstat (limited to 'lib/prune.js')
-rw-r--r--lib/prune.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/prune.js b/lib/prune.js
index 4ac813957..8d642e5b2 100644
--- a/lib/prune.js
+++ b/lib/prune.js
@@ -26,6 +26,7 @@ function prune (args, cb) {
function Pruner (where, dryrun, args) {
Installer.call(this, where, dryrun, args)
+ this.autoPrune = true
}
util.inherits(Pruner, Installer)