Commit 0714e5c
committed
fix(js): set composite to false when running type-check in noEmit mode
When a project's tsconfig inherits composite: true from a base config,
running runTypeCheck in noEmit mode results in { composite: true, noEmit: true }.
In this state, TypeScript's program.emit() still writes a minimal 19-byte
tsbuildinfo file, which poisons subsequent tsc --build runs that use
timestamp-based up-to-date checks.
This causes a race condition when typecheck and build targets run in parallel:
the esbuild executor writes the poisoned tsbuildinfo, then tsc --build sees it
and skips .d.ts emission, causing TS6305 errors in downstream projects.
Setting composite: false alongside noEmit: true prevents TypeScript from writing
the tsbuildinfo file, eliminating the race condition.
Closes #344921 parent b89c308 commit 0714e5c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments