fix: 使用 node 替代 bunx 运行 tsc 使内存限制生效
bunx 基于 Bun 运行时,忽略 NODE_OPTIONS 环境变量, 改用 node 直接调用 tsc 确保 --max-old-space-size 生效
This commit is contained in:
parent
79778424a7
commit
68c1a8b343
@ -29,7 +29,7 @@ jobs:
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- 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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user