Commit 920c70e
committed
fix(client): exclude dist directory from TypeScript compilation to prevent TS6305 errors (#313)
Adds 'exclude: ["dist"]' to tsconfig.json and tsconfig.spec.json to prevent
intermittent test failures caused by stale declaration files in the dist directory.
Previously, when dist/ contained .d.ts files from previous builds, Vitest's
typecheck would fail with TS6305 errors about files not being built from source.
This happened because TypeScript was including both source files and generated
declaration files in compilation.
Fixes the 'sometimes it works, sometimes it doesn't' behavior when running
pnpm nx test client.1 parent 24926ff commit 920c70e
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments