Skip to content

Commit 47b2148

Browse files
committed
Update tsconfig.json to 0.16.0 latest version
Signed-off-by: Mihovil Ilakovac <[email protected]>
1 parent 8eecd97 commit 47b2148

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

template/app/tsconfig.json

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
// =============================== IMPORTANT =================================
2+
// This file is mainly used for Wasp IDE support.
23
//
3-
// This file is only used for Wasp IDE support. You can change it to configure
4-
// your IDE checks, but none of these options will affect the TypeScript
5-
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
4+
// Wasp will compile your code with slightly different (less strict) compilerOptions.
5+
// You can increase the configuration's strictness (e.g., by adding
6+
// "noUncheckedIndexedAccess": true), but you shouldn't reduce it (e.g., by
7+
// adding "strict": false). Just keep in mind that this will only affect your
8+
// IDE support, not the actual compilation.
9+
//
10+
// Full TypeScript configurability is coming very soon :)
611
{
712
"compilerOptions": {
8-
"composite": true,
9-
"outDir": ".wasp/out/user",
1013
"module": "esnext",
14+
// Needed because this is used as a project reference.
15+
"composite": true,
1116
"target": "esnext",
1217
// We're bundling all code in the end so this is the most appropriate option,
1318
// it's also important for autocomplete to work properly.
@@ -17,11 +22,8 @@
1722
"strict": true,
1823
// Allow default imports.
1924
"esModuleInterop": true,
20-
"lib": [
21-
"dom",
22-
"dom.iterable",
23-
"esnext"
24-
],
25+
"lib": ["dom", "dom.iterable", "esnext"],
26+
"skipLibCheck": true,
2527
"allowJs": true,
2628
"typeRoots": [
2729
// This is needed to properly support Vitest testing with jest-dom matchers.
@@ -30,9 +32,11 @@
3032
"node_modules/@testing-library",
3133
// Specifying type roots overrides the default behavior of looking at the
3234
// node_modules/@types folder so we had to list it explicitly.
33-
// Source 1: https://www.typescriptlang.org/tsconfig#typeRoots
35+
// Source 1: https://www.typescriptlang.org/tsconfig#typeRoots
3436
// Source 2: https://github.com/testing-library/jest-dom/issues/546#issuecomment-1889884843
3537
"node_modules/@types"
3638
],
37-
}
39+
"outDir": ".wasp/out/user"
40+
},
41+
"include": ["src"]
3842
}

0 commit comments

Comments
 (0)