Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b54d850

Browse files
committedJul 20, 2017
fix(@angular/cli): Prevent re-reading config file if project & global are the same
Addresses #4207
1 parent 052ccbb commit b54d850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.