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/ci.js
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/ci.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/ci.js')
-rw-r--r--lib/ci.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/ci.js b/lib/ci.js
index b73b3a859..9ae31950e 100644
--- a/lib/ci.js
+++ b/lib/ci.js
@@ -42,8 +42,14 @@ class CI extends BaseCommand {
}
const where = this.npm.prefix
- const arb = new Arborist({ ...this.npm.flatOptions, path: where })
+ const opts = {
+ ...this.npm.flatOptions,
+ path: where,
+ log: this.npm.log,
+ save: false, // npm ci should never modify the lockfile or package.json
+ }
+ const arb = new Arborist(opts)
await Promise.all([
arb.loadVirtual().catch(er => {
log.verbose('loadVirtual', er.stack)
@@ -55,8 +61,7 @@ class CI extends BaseCommand {
}),
removeNodeModules(where),
])
- // npm ci should never modify the lockfile or package.json
- await arb.reify({ ...this.npm.flatOptions, save: false })
+ await arb.reify(opts)
const ignoreScripts = this.npm.config.get('ignore-scripts')
// run the same set of scripts that `npm install` runs.