Skip to content

Commit edb71dc

Browse files
committed
Move tsconfig.json to project root
The packages/core/tsconfig.json only covered packages/core/src, leaving packages/react and packages/node-legacy without a TypeScript project context. This caused type errors in their types.d.ts files that reference global types (GeneratorMetadata, Generate, ProcessChunk) declared in packages/core/src/generators/types.d.ts. A root tsconfig.json with include: ["packages/*/src"] ensures all packages share a single compilation context where the global type declarations are visible everywhere.
1 parent 43673d1 commit edb71dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"types": ["node"],
1010
"skipLibCheck": true
1111
},
12-
"include": ["src"]
12+
"include": ["packages/*/src"]
1313
}

0 commit comments

Comments
 (0)