mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-23 07:19:58 +08:00
fix(@angular/cli): Prevent re-reading config file if project & global are the same
Addresses #4207
This commit is contained in:
parent
6ad27c5174
commit
f735760a34
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user