Skip to content

Commit 375a396

Browse files
clydinhansl
authored andcommitted
fix(@schematics/update): support upper unbounded ranges
Fixes: #10621
1 parent 92d575b commit 375a396

File tree

1 file changed

+3
-1
lines changed
  • packages/schematics/update/update

1 file changed

+3
-1
lines changed

packages/schematics/update/update/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ const peerCompatibleWhitelist: { [name: string]: PeerVersionTransform } = {
3838
while (!semver.gtr(major + '.0.0', range)) {
3939
major++;
4040
if (major >= 99) {
41-
throw new SchematicsException(`Invalid range: ${JSON.stringify(range)}`);
41+
// Use original range if it supports a major this high
42+
// Range is most likely unbounded (e.g., >=5.0.0)
43+
return range;
4244
}
4345
}
4446

0 commit comments

Comments
 (0)