From fa5b3a894257a54001858fb8df9a69533d89f1b7 Mon Sep 17 00:00:00 2001 From: skycurtain Date: Tue, 6 Oct 2026 12:14:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20apps/server=20=E7=BB=A7=E6=89=BF?= =?UTF-8?q?=E6=A0=B9=20tsconfig=EF=BC=8C=E6=B6=88=E9=99=A4=20allowImportin?= =?UTF-8?q?gTsExtensions=20=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 包内相对导入均为 .ts 扩展名,包级配置须与根一致(extends + allowImportingTsExtensions)。 --- apps/server/tsconfig.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/server/tsconfig.json b/apps/server/tsconfig.json index 768cbf0..eeaf3ac 100644 --- a/apps/server/tsconfig.json +++ b/apps/server/tsconfig.json @@ -1,6 +1,8 @@ { + "extends": "../../tsconfig.json", "compilerOptions": { - "strict": true, - "types": ["bun"] - } + "types": ["bun"], + "allowImportingTsExtensions": true + }, + "include": ["src/**/*.ts", "test/**/*.ts"] }