fix(@angular/cli): Prevent re-reading config file if project & global are the same

Addresses #4207
This commit is contained in:
Mike Brocchi 2017-07-14 16:21:45 -04:00 committed by Hans
parent 6ad27c5174
commit f735760a34

View File

@ -32,7 +32,7 @@ export class CliConfig extends CliConfigBase<ConfigInterface> {
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);