fix: 使用 node 替代 bunx 运行 tsc 使内存限制生效
All checks were successful
CI/CD Pipeline / Code Quality (push) Successful in 17s
CI/CD Pipeline / Unit Tests (push) Successful in 15s
CI/CD Pipeline / Build & Deploy Test (push) Has been skipped
CI/CD Pipeline / Build & Deploy Production (push) Successful in 1m24s

bunx 基于 Bun 运行时,忽略 NODE_OPTIONS 环境变量,
改用 node 直接调用 tsc 确保 --max-old-space-size 生效
This commit is contained in:
Wang Zhuoxuan 2026-06-01 12:08:10 +08:00
parent 79778424a7
commit 68c1a8b343

View File

@ -29,7 +29,7 @@ jobs:
run: bun install --frozen-lockfile run: bun install --frozen-lockfile
- name: Type check - name: Type check
run: NODE_OPTIONS="--max-old-space-size=768" bunx tsc --noEmit -p tsconfig.ci.json run: node --max-old-space-size=768 ./node_modules/typescript/bin/tsc --noEmit -p tsconfig.ci.json
# ==================== 运行测试 ==================== # ==================== 运行测试 ====================
test: test: