From 6608d297e2296a8a866aabe3a2d36430252e4bee Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 21 Jun 2026 21:24:15 -0700 Subject: [PATCH] =?UTF-8?q?chore(ts):=20=E4=B8=BA=E4=B8=89=E7=AB=AF=20type?= =?UTF-8?q?check=20=E5=A2=9E=E5=8A=A0=E5=A2=9E=E9=87=8F=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E4=B8=8E=208G=20heap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - vue-tsc 增加 --incremental 和 tsBuildInfoFile,缓存写入 node_modules/.cache/vue-tsc - 三端 typecheck 统一设置 NODE_OPTIONS=--max-old-space-size=8192 - 避免清缓存全量 typecheck 时 OOM 说明:做回归判断时仍需先清理 tsbuildinfo,避免增量缓存掩盖新增错误 --- apps/web-antd/package.json | 2 +- apps/web-antdv-next/package.json | 2 +- apps/web-ele/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web-antd/package.json b/apps/web-antd/package.json index 3a4fb40a8..34241ee28 100644 --- a/apps/web-antd/package.json +++ b/apps/web-antd/package.json @@ -20,7 +20,7 @@ "build:analyze": "pnpm vite build --mode analyze", "dev": "pnpm vite --mode development", "preview": "vite preview", - "typecheck": "vue-tsc --noEmit --skipLibCheck" + "typecheck": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vue-tsc --noEmit --skipLibCheck --incremental --tsBuildInfoFile node_modules/.cache/vue-tsc/tsconfig.tsbuildinfo" }, "imports": { "#/*": "./src/*" diff --git a/apps/web-antdv-next/package.json b/apps/web-antdv-next/package.json index c1120bbb7..89894ed58 100644 --- a/apps/web-antdv-next/package.json +++ b/apps/web-antdv-next/package.json @@ -20,7 +20,7 @@ "build:analyze": "pnpm vite build --mode analyze", "dev": "pnpm vite --mode development", "preview": "vite preview", - "#typecheck": "vue-tsc --noEmit --skipLibCheck" + "#typecheck": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vue-tsc --noEmit --skipLibCheck --incremental --tsBuildInfoFile node_modules/.cache/vue-tsc/tsconfig.tsbuildinfo" }, "imports": { "#/*": "./src/*" diff --git a/apps/web-ele/package.json b/apps/web-ele/package.json index 24c629e38..1e8a051df 100644 --- a/apps/web-ele/package.json +++ b/apps/web-ele/package.json @@ -20,7 +20,7 @@ "build:analyze": "pnpm vite build --mode analyze", "dev": "pnpm vite --mode development", "preview": "vite preview", - "typecheck": "vue-tsc --noEmit --skipLibCheck" + "typecheck": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vue-tsc --noEmit --skipLibCheck --incremental --tsBuildInfoFile node_modules/.cache/vue-tsc/tsconfig.tsbuildinfo" }, "imports": { "#/*": "./src/*"