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 cd70f2d

Browse files
clydinBrocco
authored andcommittedFeb 13, 2018
fix(@angular/cli): support major versions greater than 1
1 parent d8ed389 commit cd70f2d

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)
Please sign in to comment.