From f735760a34c702df38ed9a5939cb7851a19e107a Mon Sep 17 00:00:00 2001 From: Mike Brocchi Date: Fri, 14 Jul 2017 16:21:45 -0400 Subject: [PATCH] fix(@angular/cli): Prevent re-reading config file if project & global are the same Addresses #4207 --- packages/@angular/cli/models/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@angular/cli/models/config.ts b/packages/@angular/cli/models/config.ts index b34b485b36..4eb4357ed3 100644 --- a/packages/@angular/cli/models/config.ts +++ b/packages/@angular/cli/models/config.ts @@ -32,7 +32,7 @@ export class CliConfig extends CliConfigBase { const projectConfig = CliConfig.fromProject(); if (projectConfig) { value = projectConfig.get(jsonPath); - } else { + } else if (CliConfig.globalConfigFilePath() !== CliConfig.configFilePath()) { const globalConfig = CliConfig.fromGlobal(); if (globalConfig) { value = globalConfig.get(jsonPath);