Skip to content

Commit a69b785

Browse files
committed
fix: don't check the .d.ts files from node_modules
`Cannot find type definition file for 'jasmine/v2'` error is thrown when a new code shared application is created. It seems the issues comes [from this commit inside jasmine repo](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/38412/files#diff-704f3d6b17350ee2426b25280154df4f). Adding `skipLibCheck: true` to `tsconfig.json` will skip the checks of `.d.ts` files inside `node_modules`. This will also improve the performance of typescript compilation with a lot of deps and files to process. Rel to: #249
1 parent 111bcfb commit a69b785

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/ng-new/application/_files/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"target": "es5",
55
"experimentalDecorators": true,
66
"emitDecoratorMetadata": true,
7+
"skipLibCheck": true,
78
"noEmitHelpers": true,
89
"noEmitOnError": true,
910
"lib": [

src/ng-new/shared/_files/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"moduleResolution": "node",
88
"emitDecoratorMetadata": true,
99
"experimentalDecorators": true,
10+
"skipLibCheck": true,
1011
"target": "es5",
1112
"typeRoots": [
1213
"node_modules/@types"

0 commit comments

Comments
 (0)