diff options
author | Gar <gar+gh@danger.computer> | 2021-03-09 03:22:54 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2021-03-18 21:54:42 +0300 |
commit | 46e14bd0ff566f94e8f86f9d972bf089c000da52 (patch) | |
tree | e6b478f20fd306f149e508fdacc373f7f1bba124 /lib/rebuild.js | |
parent | b395763f002457866d8bf4bf37858f69459f1d30 (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.js | 2 |
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, |