Commit 507d758
chore(schemas,web): keep schema dist fresh and resolve types from source
Two dev-experience fixes for the stale-build-output footgun:
- schemas watch now runs `yarn build` (generate + tsc) instead of
generate-only, so editing a schema JSON during `yarn dev` refreshes
dist (both the .d.ts types and the runtime index.schema.js used by
ajv), not just the generated source.
- web tsconfig maps @sourcebot/schemas/v3|v2/* to the package source,
so type-checking and the IDE read committed source directly instead
of stale built .d.ts. Web only imports .type files (erased at
compile), so there is no bundling/runtime impact.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 5e4045b commit 507d758
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
0 commit comments