Commit 37d9e1c
committed
ci: batch-typecheck examples with tsgo; lighten pre-commit
Replaces 23 per-example `tsc --noEmit` invocations with a single
`tsgo -b --noEmit` batch call that checks all 46 tsconfigs (SDK +
example client + server configs) in one process.
Local (14-core): typecheck 46 configs in ~2s (was ~50s CPU across
separate tsc spawns). examples:build: 22s → 15.5s wall, 148s → 82s CPU.
CI: expect examples:build ~135s → ~80-90s on Linux (2-core runners
were bottlenecked on tsc spawn overhead + contention). Also skips the
redundant SDK rebuild inside preexamples:build.
Pre-commit: replaces full build:all (all vite bundles) with SDK build
+ typecheck. CI still does the full build.
tsgo pinned to 7.0.0-dev.20260305.1. Used for --noEmit only; .d.ts
emission stays on tsc (tsgo declaration emit has known nondeterminism,
microsoft/typescript-go#1570).
Side fix: 14 examples imported CSS without vite-env.d.ts. tsc 5.9
tolerates this but tsgo enforces TS2882. Added the standard Vite shim.1 parent 2b0d11e commit 37d9e1c
43 files changed
Lines changed: 231 additions & 26 deletions
File tree
- .github/workflows
- .husky
- examples
- basic-host
- basic-server-preact
- basic-server-react
- basic-server-solid
- basic-server-svelte
- src
- basic-server-vanillajs
- src
- basic-server-vue
- budget-allocator-server
- src
- cohort-heatmap-server
- customer-segmentation-server
- src
- debug-server
- src
- integration-server
- map-server
- pdf-server
- src
- quickstart
- scenario-modeler-server
- src
- shadertoy-server
- src
- sheet-music-server
- src
- system-monitor-server
- src
- threejs-server
- src
- transcript-server
- src
- video-resource-server
- src
- wiki-explorer-server
- src
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
87 | 93 | | |
88 | 94 | | |
89 | 95 | | |
| |||
162 | 168 | | |
163 | 169 | | |
164 | 170 | | |
165 | | - | |
| 171 | + | |
| 172 | + | |
166 | 173 | | |
167 | 174 | | |
168 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments