mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-10-16 05:25:42 -04:00
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:
1 file changed
+3
@@ -1,4 +1,7 @@
|
|||||||
{
|
{
|
||||||
"extends": "@sofa/tsconfig/base.json",
|
"extends": "@sofa/tsconfig/base.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"typeRoots": ["./node_modules/@types", "../../node_modules/@types"]
|
||||||
|
},
|
||||||
"include": ["src"]
|
"include": ["src"]
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user