Skip to content

Commit cf3c136

Browse files
serpentbladeclaude
andcommitted
build(turbo): gate vite-demo typecheck on own build to fix sidecar race
The global typecheck task dependsOn [^build, sync] only — not the package's own build. The 5 vite-demo consumers include unplugin-emitted .d.rozie.ts sidecars via src/**/*, so under `turbo … --force` a package's own build (which rewrites those sidecars) races its typecheck (which reads them), producing a transient red that passes on re-run. Add package-scoped #typecheck overrides for react-vite-demo, solid-vite-demo, svelte-vite-demo, vue-vite-demo, and lit-vanilla-demo so each typecheck now depends on its own build. Global typecheck left untouched so toolchain packages avoid the extra serialization. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b744aab commit cf3c136

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

turbo.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,26 @@
4040
"dependsOn": ["^build", "sync"],
4141
"outputs": []
4242
},
43+
"react-vite-demo#typecheck": {
44+
"dependsOn": ["build", "^build", "sync"],
45+
"outputs": []
46+
},
47+
"solid-vite-demo#typecheck": {
48+
"dependsOn": ["build", "^build", "sync"],
49+
"outputs": []
50+
},
51+
"svelte-vite-demo#typecheck": {
52+
"dependsOn": ["build", "^build", "sync"],
53+
"outputs": []
54+
},
55+
"vue-vite-demo#typecheck": {
56+
"dependsOn": ["build", "^build", "sync"],
57+
"outputs": []
58+
},
59+
"lit-vanilla-demo#typecheck": {
60+
"dependsOn": ["build", "^build", "sync"],
61+
"outputs": []
62+
},
4363
"dev": {
4464
"dependsOn": ["^build", "sync"],
4565
"cache": false,

0 commit comments

Comments
 (0)