Commit 6b5b0b0
committed
fix: use dts-bundle-generator for SDK type generation in typecheck
The SDK build:types script was using plain tsc which generated nested type
files (sdk/dist/sdk/src/*.d.ts) instead of a bundled index.d.ts. This caused
TypeScript module resolution failures in CI when packages tried to import
@codebuff/sdk.
Changes:
- Updated SDK build:types to use dts-bundle-generator for bundled types
- Added pretypecheck hooks to npm-app and evals packages
- This ensures SDK types are properly built before dependent packages typecheck
The bundled approach matches the SDK's actual build script and correctly
outputs dist/index.d.ts as expected by package.json types field.1 parent 94844b6 commit 6b5b0b0
3 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments