From 3a8587aa04a0e947643e4affe80f99ce8c337716 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Mon, 8 Dec 2025 20:01:57 +0800 Subject: [PATCH] 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. --- tsconfig.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 93f2536..bad3493 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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/**/*"] +} \ No newline at end of file