From d57a421c1601cdf96b8efdb79d6844ad7345823f Mon Sep 17 00:00:00 2001 From: Bart Date: Fri, 30 Oct 2026 10:32:07 +0100 Subject: [PATCH] chore(tsconfig): drop baseUrl and list types explicitly for TypeScript 6 TypeScript 6 deprecates baseUrl (TS5101) and defaults `types` to [], so @types/node and @types/jest are no longer picked up automatically. Make the @clack/prompts path mapping relative and list the types. Both changes work on TypeScript 5.9 too, which unblocks #61. Co-Authored-By: Claude Opus 5.5 --- tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index a979fac..b2a4617 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,12 +7,12 @@ "strict": true, "skipLibCheck": true, "rootDir": "./src", - "baseUrl": ".", + "types": ["node", "jest"], "paths": { // @clack/prompts is ESM-only (.d.mts types); this project's node10 // resolution can't see them. esbuild bundles the real module at build // time — this mapping is for type-checking only. - "@clack/prompts": ["node_modules/@clack/prompts/dist/index.d.mts"] + "@clack/prompts": ["./node_modules/@clack/prompts/dist/index.d.mts"] } }, "include": ["xmcp-env.d.ts", "src/**/*.ts"]