Commit 0c3f412
build: bundle declarations on typescript@6, type-check on native typescript@7
Dependabot #7 bumped typescript to 7.0.2 (the native Go compiler), which has no
programmatic Compiler API yet, so tsup's bundled-dts step (rollup-plugin-dts)
crashed and `pnpm build` broke.
Adopt the supported side-by-side setup:
- typescript@6.0.3 (JS-based, same language level) keeps the Compiler API that
tsup --dts needs. ignoreDeprecations '6.0' is set on the dts step alone, so
the baseUrl-removal bridge error is silenced without touching the shared
tsconfig read by the native type-checker.
- @typescript/native-preview provides `tsgo`; check-types runs on the native
compiler.
Restores the bundled, self-contained index.d.ts / index.d.cts (no unbundled
files, no post-build hacks). publint clean; attw green for node10, node16
(CJS+ESM) and bundler.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent f2b0531 commit 0c3f412
3 files changed
Lines changed: 90 additions & 205 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
0 commit comments