Commit 7999109
committed
Fix openapi package exports: use bun/types/import pattern
The exports map pointed all conditions at source ./index.ts, which
breaks Node after build — index.ts imports ./specParser.js but only
.ts source files exist. Node needs the built dist/ files.
Use the same pattern as other packages: bun→source for dev,
types/import→dist for Node. Drop the unused publishConfig.exports
since this package is private.
Fixes: bin.js spec exited with code 1: ERR_MODULE_NOT_FOUND
Committed-By-Agent: claude1 parent 584ee74 commit 7999109
1 file changed
Lines changed: 3 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
19 | 11 | | |
20 | 12 | | |
21 | 13 | | |
| |||
0 commit comments