Update tsconfig for bundler resolution and type includes

Changed moduleResolution to 'bundler' and added Cloudflare Vitest pool workers types to the include array for better type support. Removed explicit types array and ensured configuration aligns with new tooling requirements.
This commit is contained in:
xixu-me committed 2025-12-08 20:03:10 +08:00
1 parent 9b5db30455
commit e639554587
1 file changed
+4 -5
+4 -5
View File
@@ -5,13 +5,12 @@
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"noEmit": true,
"skipLibCheck": true,
"strict": true,
"target": "ES2022",
"types": ["@cloudflare/workers-types", "vitest/globals"]
"target": "ES2022"
},
"exclude": ["node_modules", "dist", "coverage"],
"include": ["src/**/*", "test/**/*"]
}
"include": ["src/**/*", "test/**/*", "node_modules/@cloudflare/vitest-pool-workers/types/**/*"]
}