From 32dd6a3190949e0e2f3a7325c1e26731874e859e Mon Sep 17 00:00:00 2001 From: Wang Zhuoxuan Date: Thu, 28 May 2026 23:48:48 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=A7=BB=E9=99=A4=20tsconfig=20?= =?UTF-8?q?=E4=B8=AD=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=20declaration=20?= =?UTF-8?q?=E5=92=8C=20declarationMap=20=E9=99=8D=E4=BD=8E=20CI=20?= =?UTF-8?q?=E5=86=85=E5=AD=98=E5=8D=A0=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit API 服务器不需要生成 .d.ts 声明文件,这两个选项是 tsc 内存消耗的主要来源, 在内存受限的 CI runner 上会导致 OOM 被 SIGKILL。 --- tsconfig.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index a2396a2..d65ea86 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,8 +10,6 @@ "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, - "declaration": true, - "declarationMap": true, "sourceMap": true, "noUnusedLocals": true, "noUnusedParameters": true,