From 4e4a4903f9e4671c1fbd7c2030f199728cb1bb2c Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sun, 4 Oct 2026 15:00:21 -0400 Subject: [PATCH] fix: resolve @types/bun when Vercel compiles public-api with TypeScript 7 With TypeScript 7, @vercel/node compiles via a temporary tsconfig in the OS temp dir that extends the project config, so default type roots resolve from that temp dir and `types: ["bun"]` fails with TS2688. Pin typeRoots relative to the public-api tsconfig so they survive being extended. Co-Authored-By: Claude Opus 5.5 --- apps/public-api/tsconfig.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/public-api/tsconfig.json b/apps/public-api/tsconfig.json index 5e4fa20..e9d3371 100644 --- a/apps/public-api/tsconfig.json +++ b/apps/public-api/tsconfig.json @@ -1,4 +1,7 @@ { "extends": "@sofa/tsconfig/base.json", + "compilerOptions": { + "typeRoots": ["./node_modules/@types", "../../node_modules/@types"] + }, "include": ["src"] }