Repository navigation
Commit 94f7cb5
authored
fix(vscode): skip redundant tsc build in prepackage to prevent TS5055 (#4401)
The prepackage script called `npm run build` (full tsc compilation of
all workspace packages) before bundling. This second tsc pass fails
with TS5055 in CI because:
1. `npm ci` already built everything via the `prepare` lifecycle
2. `release:version` bumps package versions, making tsbuildinfo stale
3. The redundant `npm run build` triggers tsc --build which attempts a
full rebuild, but composite project references cause dist/*.d.ts to
be resolved as input files → TS5055
The fix removes the redundant `npm run build` call. The CLI bundle is
produced by esbuild directly from TypeScript source files (entry:
packages/cli/index.ts), so compiled dist/ artifacts are not needed.
Root cause introduced by #4295 (composite project references).1 parent 6b0e758 commit 94f7cb5
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
0 commit comments