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:
authorGar <gar+gh@danger.computer>2021-03-24 20:42:28 +0300
committerGar <gar+gh@danger.computer>2021-03-24 20:51:52 +0300
commitaba2bc623ea99e563b1b15b81dbb4ba94f86fe4c (patch)
tree90d264c0057dd0ad3b4063e3822dc82a47dddc61 /lib/prune.js
parente8d2adcf40ad63030f844c9aa44c6d16e2146797 (diff)
fix(progress): re-add progress bar to reify
The logger was no longer in flatOptions, we pass it in explicitly now PR-URL: https://github.com/npm/cli/pull/2944 Credit: @wraithgar Close: #2944 Reviewed-by: @nlf
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)
}
}