Skip to content

Commit 35b7377

Browse files
dhaneshclaude
andcommitted
chore(dev): fix bun-types typecheck resolution in cli tsconfig
`types: ["bun-types"]` only resolved via a stale hoisted node_modules layout; on a clean install `tsc` fails with TS2688 because the `types` array resolves against node_modules/@types and `bun-types` is a plain (transitive) package. Reference the installed `@types/bun` as `"bun"` instead. Verified against a clean `bun install`; CI typecheck now passes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Piqz8qJ21eRpPrmWwxr6fg
1 parent 48c83d4 commit 35b7377

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

cli/tsconfig.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"target": "ES2022",
44
"module": "ESNext",
55
"moduleResolution": "bundler",
6-
"lib": ["ES2022"],
6+
"lib": [
7+
"ES2022"
8+
],
79
"strict": true,
810
"esModuleInterop": true,
911
"skipLibCheck": true,
@@ -13,7 +15,9 @@
1315
"declarationMap": true,
1416
"outDir": "./dist",
1517
"rootDir": ".",
16-
"types": ["bun-types"],
18+
"types": [
19+
"bun"
20+
],
1721
"noEmit": true
1822
},
1923
"include": [

0 commit comments

Comments
 (0)