Skip to content

Commit 5af9220

Browse files
pbrisbinclaude
andcommitted
Add rootDir and types for TypeScript 6 compatibility
TypeScript 6 requires explicit rootDir when outDir is set, and explicit types configuration for node globals. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent f654198 commit 5af9220

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$schema": "https://json.schemastore.org/tsconfig",
33
"compilerOptions": {
44
"outDir": "./lib",
5+
"rootDir": "./src",
56
"allowJs": true,
67
"target": "ES2022",
78
"noImplicitAny": true,
@@ -17,7 +18,8 @@
1718
"moduleResolution": "NodeNext",
1819
"esModuleInterop": true,
1920
"strict": true,
20-
"isolatedModules": true
21+
"isolatedModules": true,
22+
"types": ["node"]
2123
},
2224
"include": ["./src/**/*"],
2325
"exclude": ["./src/**/*.test.ts"]

0 commit comments

Comments
 (0)