Skip to content

Commit 7d7897e

Browse files
clydinBrocco
authored andcommitted
fix(@angular/cli): support major versions greater than 1
1 parent 29d457d commit 7d7897e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export class Version {
199199
if (version && version.isKnown()) {
200200
if (version.major == 0) {
201201
return true;
202-
} else if (version.minor != 0) {
202+
} else if (version.major > 1 || version.minor != 0) {
203203
return false;
204204
} else if (version.isBeta() && !version.toString().match(/webpack/)) {
205205
const betaVersion = version.extra;

0 commit comments

Comments
 (0)