From 46e14bd0ff566f94e8f86f9d972bf089c000da52 Mon Sep 17 00:00:00 2001 From: Gar Date: Mon, 8 Mar 2021 16:22:54 -0800 Subject: 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 --- lib/rebuild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rebuild.js') 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, -- cgit v1.2.3