Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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
  • Loading branch information
Fatme committed Sep 30, 2019
commit a69b78501bd92c535b7ae4262ae1b64d30c1969f
1 change: 1 addition & 0 deletions src/ng-new/application/_files/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"target": "es5",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipLibCheck": true,
"noEmitHelpers": true,
"noEmitOnError": true,
"lib": [
Expand Down
1 change: 1 addition & 0 deletions src/ng-new/shared/_files/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
Expand Down