We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9caa7ca commit daeda67Copy full SHA for daeda67
packages/@ngtools/webpack/src/index.ts
@@ -1,12 +1,12 @@
1
// @ignoreDep typescript
2
-import { satisfies } from 'semver';
+import { gte } from 'semver';
3
4
// Test if typescript is available. This is a hack. We should be using peerDependencies instead
5
// but can't until we split global and local packages.
6
// See https://github.com/angular/angular-cli/issues/8107#issuecomment-338185872
7
try {
8
const version = require('typescript').version;
9
- if (!satisfies(version, '^2.0.2')) {
+ if (!gte(version, '2.0.2')) {
10
throw new Error();
11
}
12
} catch (e) {
0 commit comments