diff options
author | Gar <gar+gh@danger.computer> | 2021-03-24 20:42:28 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-03-24 20:51:52 +0300 |
commit | aba2bc623ea99e563b1b15b81dbb4ba94f86fe4c (patch) | |
tree | 90d264c0057dd0ad3b4063e3822dc82a47dddc61 /lib/ci.js | |
parent | e8d2adcf40ad63030f844c9aa44c6d16e2146797 (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.js | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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. |