Skip to content

Commit 83d9c03

Browse files
committed
fix(@angular/cli): Prevent re-reading config file if project & global are the same
Addresses angular#4207
1 parent 962b028 commit 83d9c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@angular/cli/models/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class CliConfig extends CliConfigBase<ConfigInterface> {
3232
const projectConfig = CliConfig.fromProject();
3333
if (projectConfig) {
3434
value = projectConfig.get(jsonPath);
35-
} else {
35+
} else if (CliConfig.globalConfigFilePath() !== CliConfig.configFilePath()) {
3636
const globalConfig = CliConfig.fromGlobal();
3737
if (globalConfig) {
3838
value = globalConfig.get(jsonPath);

0 commit comments

Comments
 (0)