Commit a7acace
fix: v0.1.1 — consumers typecheck clean without re-adding workarounds (#7)
Because the engine ships TS source (no build), a consumer's tsc/svelte-check
resolves into the engine's .ts and inherited two type-resolution needs:
- the `declare module "*.xsd"` ambient for the e-SLOG XSD text-imports, and
- node-forge types.
Fix (no API/runtime change):
- validate-eslog.ts carries a triple-slash `/// <reference path>` to types.d.ts
so the *.xsd ambient enters any consumer's compilation that loads it.
- @types/node-forge moved to dependencies so consumers get node-forge types
transitively.
Consumers on ^0.1.0 auto-inherit 0.1.1; no consumer bump needed. Benefits the
demo lib + the medusa-plugin. 44 pass / 1 skip, tsc clean.
Note: the bun `with { type: "text" }` XSD load vs Vite `?raw` (a separate
*bundler* concern, not typecheck) is being verified by the demo's vite build —
a bundler-neutral load is a candidate v0.1.2 if confirmed.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c6da1ba commit a7acace
3 files changed
Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 | | |
2 | 7 | | |
3 | 8 | | |
| |||
0 commit comments