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-09 03:22:54 +0300
committerisaacs <i@izs.me>2021-03-18 21:54:42 +0300
commit46e14bd0ff566f94e8f86f9d972bf089c000da52 (patch)
treee6b478f20fd306f149e508fdacc373f7f1bba124 /lib/rebuild.js
parentb395763f002457866d8bf4bf37858f69459f1d30 (diff)
chore(config): remove flatOptions references
Iterative change moving us towards a more unified config. No longer pulling config from flatOptions where we don't have to. PR-URL: https://github.com/npm/cli/pull/2892 Credit: @wraithgar Close: #2892 Reviewed-by: @ruyadorno
Diffstat (limited to 'lib/rebuild.js')
-rw-r--r--lib/rebuild.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rebuild.js b/lib/rebuild.js
index 74f5ae5f6..c11747b97 100644
--- a/lib/rebuild.js
+++ b/lib/rebuild.js
@@ -27,7 +27,7 @@ class Rebuild extends BaseCommand {
async rebuild (args) {
const globalTop = resolve(this.npm.globalDir, '..')
- const where = this.npm.flatOptions.global ? globalTop : this.npm.prefix
+ const where = this.npm.config.get('global') ? globalTop : this.npm.prefix
const arb = new Arborist({
...this.npm.flatOptions,
path: where,