|
1 | 1 | // =============================== IMPORTANT =================================
|
| 2 | +// This file is mainly used for Wasp IDE support. |
2 | 3 | //
|
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 :) |
6 | 11 | {
|
7 | 12 | "compilerOptions": {
|
8 |
| - "composite": true, |
9 |
| - "outDir": ".wasp/out/user", |
10 | 13 | "module": "esnext",
|
| 14 | + // Needed because this is used as a project reference. |
| 15 | + "composite": true, |
11 | 16 | "target": "esnext",
|
12 | 17 | // We're bundling all code in the end so this is the most appropriate option,
|
13 | 18 | // it's also important for autocomplete to work properly.
|
|
17 | 22 | "strict": true,
|
18 | 23 | // Allow default imports.
|
19 | 24 | "esModuleInterop": true,
|
20 |
| - "lib": [ |
21 |
| - "dom", |
22 |
| - "dom.iterable", |
23 |
| - "esnext" |
24 |
| - ], |
| 25 | + "lib": ["dom", "dom.iterable", "esnext"], |
| 26 | + "skipLibCheck": true, |
25 | 27 | "allowJs": true,
|
26 | 28 | "typeRoots": [
|
27 | 29 | // This is needed to properly support Vitest testing with jest-dom matchers.
|
|
30 | 32 | "node_modules/@testing-library",
|
31 | 33 | // Specifying type roots overrides the default behavior of looking at the
|
32 | 34 | // 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 |
34 | 36 | // Source 2: https://github.com/testing-library/jest-dom/issues/546#issuecomment-1889884843
|
35 | 37 | "node_modules/@types"
|
36 | 38 | ],
|
37 |
| - } |
| 39 | + "outDir": ".wasp/out/user" |
| 40 | + }, |
| 41 | + "include": ["src"] |
38 | 42 | }
|
0 commit comments