Commit 3e2dad8
Paweł Aniszewski
build(config): split tsconfig into IDE config and dedicated production compile
tsconfig.json now covers all src/ files (including __tests__ and __mocks__)
so the VS Code language service resolves @types/jest and stops reporting
errors in test files.
tsconfig.build.json extends tsconfig.json and re-adds the test exclusions,
keeping the production compile (tsc) free of test files.
tsconfig.test.json extends tsconfig.json and adds jest/node types for
ts-jest. jest.config.js wired to use it via globals["ts-jest"].tsconfig.
package.json: compile and watch:types scripts now target tsconfig.build.json.1 parent 599df5e commit 3e2dad8
4 files changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
0 commit comments