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:
1 parent
408bf242ad
commit
3a8587aa04
1 file changed
+5
-4
+5
-4
@@ -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/**/*"]
|
||||
}
|
||||
Reference in new issue
Block a user