From 13523cad26ce3080e9b4c24591ba22e23517b043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sat, 15 Nov 2025 14:40:06 +0800 Subject: [PATCH] Update tsconfig to include typeRoots and format paths Added 'typeRoots' to specify custom type definitions directory and reformatted the 'paths' property for better readability. This improves TypeScript type resolution and project maintainability. --- tsconfig.base.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tsconfig.base.json b/tsconfig.base.json index d860242a..5a476d5f 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -6,6 +6,9 @@ "lib": [ "ES2021" ], + "typeRoots": [ + "./node_modules/@types" + ], "esModuleInterop": true, "outDir": "dist", "noEmit": false, @@ -32,7 +35,9 @@ "resolveJsonModule": true, "baseUrl": ".", "paths": { - "@/*": ["packages/*"] + "@/*": [ + "packages/*" + ] }, "skipLibCheck": true, "skipDefaultLibCheck": true