Skip to content

Commit e055bd4

Browse files
kevinbuhmanndond2clouds
authored andcommitted
fix(@ngtools/webpack): allow typescript dev versions
1 parent d2a9e24 commit e055bd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@ngtools/webpack/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// @ignoreDep typescript
2-
import { satisfies } from 'semver';
2+
import { gte } from 'semver';
33

44
// Test if typescript is available. This is a hack. We should be using peerDependencies instead
55
// but can't until we split global and local packages.
66
// See https://github.com/angular/angular-cli/issues/8107#issuecomment-338185872
77
try {
88
const version = require('typescript').version;
9-
if (!satisfies(version, '^2.0.2')) {
9+
if (!gte(version, '2.0.2')) {
1010
throw new Error();
1111
}
1212
} catch (e) {

0 commit comments

Comments
 (0)