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 <noreply@anthropic.com>
This commit is contained in:
jakeandClaude Opus 5.5 committed 2026-10-04 15:00:21 -04:00
1 parent fefd0ee032
commit 4e4a4903f9
1 file changed
+3
+3
View File
@@ -1,4 +1,7 @@
{
"extends": "@sofa/tsconfig/base.json",
"compilerOptions": {
"typeRoots": ["./node_modules/@types", "../../node_modules/@types"]
},
"include": ["src"]
}