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:
Diffstat (limited to 'lib/prune.js')
-rw-r--r--lib/prune.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/prune.js b/lib/prune.js
index 1da86a3e8..5c4a549d4 100644
--- a/lib/prune.js
+++ b/lib/prune.js
@@ -30,11 +30,13 @@ class Prune extends BaseCommand {
async prune () {
const where = this.npm.prefix
- const arb = new Arborist({
+ const opts = {
...this.npm.flatOptions,
path: where,
- })
- await arb.prune(this.npm.flatOptions)
+ log: this.npm.log,
+ }
+ const arb = new Arborist(opts)
+ await arb.prune(opts)
await reifyFinish(this.npm, arb)
}
}