From 3b305ee71e2bf852ff3037366a1774b8c5fcc0a5 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Tue, 19 Dec 2017 01:31:40 -0800 Subject: install: Only autoprune on install with lock file --- lib/prune.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/prune.js') 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) -- cgit v1.2.3