Skip to content

Commit 3df37ae

Browse files
bwlclaude
andcommitted
Add explicit type configuration for consistent type resolution
Configure TypeScript to explicitly resolve Node and Bun type definitions, ensuring bun run lint works consistently across all environments (local, CI, codex environment, etc.). Changes: - Add "types" array to explicitly include node and bun types - Add "typeRoots" to ensure node_modules/@types is checked - Add "lib" array for ES2020 standard library types This addresses the ambient type definition issue identified by @codex where type resolution could fail in environments without implicit type discovery. Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a2e350b commit 3df37ae

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"skipLibCheck": true,
1010
"resolveJsonModule": true,
1111
"outDir": "dist",
12-
"rootDir": "src"
12+
"rootDir": "src",
13+
"lib": ["ES2020"],
14+
"types": ["node", "bun"],
15+
"typeRoots": ["./node_modules/@types"]
1316
},
1417
"include": ["src/**/*"],
1518
"exclude": ["node_modules", "dist"]

0 commit comments

Comments
 (0)