Skip to content

Commit 6772797

Browse files
committed
fix: check for old version of the CLI on empty project
1 parent 5431abc commit 6772797

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: packages/angular-cli/upgrade/version.ts

+5
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ export class Version {
7676

7777

7878
const configPath = CliConfig.configFilePath();
79+
80+
if (configPath === null) {
81+
return new Version(null);
82+
}
83+
7984
const configJson = readFileSync(configPath, 'utf8');
8085

8186
try {

0 commit comments

Comments
 (0)