Skip to content

Commit

Permalink
Enable compiler option skipLibCheck in TypeScript based templates
Browse files Browse the repository at this point in the history
This is done to prevent compile errors due to @types/node clashing with
tabris type declarations. This can be considered a workaround, as
tabris really shouldn't clash with node, but it's also in general a
good compiler option to enable.

Change-Id: I88b1d6e6997bd2bef23144125443a1aebe0ed46d
  • Loading branch information
tbuschto committed Jun 22, 2021
1 parent 5748b8b commit 09c4ca6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/templates-3.x/ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"allowJs": true,
"typeRoots": ["node_modules/@types"]
"typeRoots": ["node_modules/@types"],
"skipLibCheck": true
},
"include": [
"./src/**/*.ts",
Expand Down

0 comments on commit 09c4ca6

Please sign in to comment.