From edb71dce8b254752ed5f87cf94cb7cb40a3d3ec1 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Mon, 10 Aug 2026 08:02:36 +0800 Subject: [PATCH] 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. --- packages/core/tsconfig.json => tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename packages/core/tsconfig.json => tsconfig.json (87%) diff --git a/packages/core/tsconfig.json b/tsconfig.json similarity index 87% rename from packages/core/tsconfig.json rename to tsconfig.json index 704375f7..d464ecc4 100644 --- a/packages/core/tsconfig.json +++ b/tsconfig.json @@ -9,5 +9,5 @@ "types": ["node"], "skipLibCheck": true }, - "include": ["src"] + "include": ["packages/*/src"] }