From e639554587b78b95da1cb73e48703b947b6f03e7 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Mon, 8 Dec 2025 20:03:10 +0800 Subject: [PATCH] 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. --- tsconfig.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index bad3493..93f2536 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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/**/*"] -} \ No newline at end of file + "include": ["src/**/*", "test/**/*", "node_modules/@cloudflare/vitest-pool-workers/types/**/*"] +}