fix(@angular/cli): Revert change to config reading

The code before this change prevented reading of global configuration values.
This commit is contained in:
Mike Brocchi 2017-08-10 09:52:55 -04:00 committed by Hans
parent 41dce6e76f
commit 99eba9823c

View File

@ -32,7 +32,7 @@ export class CliConfig extends CliConfigBase<ConfigInterface> {
const projectConfig = CliConfig.fromProject();
if (projectConfig) {
value = projectConfig.get(jsonPath);
} else if (CliConfig.globalConfigFilePath() !== CliConfig.configFilePath()) {
} else {
const globalConfig = CliConfig.fromGlobal();
if (globalConfig) {
value = globalConfig.get(jsonPath);