|
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 | 13 | "module": "esnext",
|
| 14 | + // Needed because this is used as a project reference. |
| 15 | + "composite": true, |
9 | 16 | "target": "esnext",
|
10 | 17 | // We're bundling all code in the end so this is the most appropriate option,
|
11 | 18 | // it's also important for autocomplete to work properly.
|
|
20 | 27 | "dom.iterable",
|
21 | 28 | "esnext"
|
22 | 29 | ],
|
| 30 | + "skipLibCheck": true, |
23 | 31 | "allowJs": true,
|
24 | 32 | "typeRoots": [
|
25 | 33 | // This is needed to properly support Vitest testing with jest-dom matchers.
|
|
32 | 40 | // Source 2: https://github.com/testing-library/jest-dom/issues/546#issuecomment-1889884843
|
33 | 41 | "node_modules/@types"
|
34 | 42 | ],
|
35 |
| - // Since this TS config is used only for IDE support and not for |
36 |
| - // compilation, the following directory doesn't exist. We need to specify |
37 |
| - // it to prevent this error: |
38 |
| - // https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file |
39 |
| - "outDir": ".wasp/phantom" |
40 |
| - } |
| 43 | + "outDir": ".wasp/out/user" |
| 44 | + }, |
| 45 | + "include": [ |
| 46 | + "src" |
| 47 | + ] |
41 | 48 | }
|
0 commit comments