Update tsconfig for module resolution and types

Changed moduleResolution from 'bundler' to 'node', added global types for Cloudflare Workers and Vitest, and simplified the include paths. This improves compatibility with Node.js tooling and test environments.
This commit is contained in:
xixu-me committed 2025-12-08 20:01:57 +08:00
1 parent a621d4f21b
commit 9b5db30455
1 file changed
+4 -3
+4 -3
View File
@@ -5,12 +5,13 @@
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "bundler",
"moduleResolution": "node",
"noEmit": true,
"skipLibCheck": true,
"strict": true,
"target": "ES2022"
"target": "ES2022",
"types": ["@cloudflare/workers-types", "vitest/globals"]
},
"exclude": ["node_modules", "dist", "coverage"],
"include": ["src/**/*", "test/**/*", "node_modules/@cloudflare/vitest-pool-workers/types/**/*"]
"include": ["src/**/*", "test/**/*"]
}