Skip to content

Commit d2ffa9a

Browse files
xuyushun441-sysos-zhuangclaude
authored
fix(spec): raise DTS build heap 4096→12288 (fix flaky ERR_WORKER_OUT_OF_MEMORY) (#1619)
The spec build's separate DTS pass hard-codes NODE_OPTIONS=--max-old-space-size=4096, which OVERRIDES the Docker/CI outer 12288 — so the type-declaration build runs in a 4GB ceiling and intermittently OOMs (ERR_WORKER_OUT_OF_MEMORY), failing the objectos image build. The schema/type surface has grown past 4GB for the DTS pass. Match the outer build budget (12288); --max-old-space-size is a ceiling, not a reservation, so it is safe on smaller machines too. Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 8fa71c1 commit d2ffa9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/spec/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
"src/**/*.zod.ts"
179179
],
180180
"scripts": {
181-
"build": "pnpm gen:schema && pnpm gen:openapi && tsup && if [ -z \"$OS_SKIP_DTS\" ]; then NODE_OPTIONS=\"--max-old-space-size=4096\" BUILD_DTS=true tsup; fi",
181+
"build": "pnpm gen:schema && pnpm gen:openapi && tsup && if [ -z \"$OS_SKIP_DTS\" ]; then NODE_OPTIONS=\"--max-old-space-size=12288\" BUILD_DTS=true tsup; fi",
182182
"dev": "tsc --watch",
183183
"clean": "rm -rf dist",
184184
"gen:schema": "OS_EAGER_SCHEMAS=1 tsx scripts/build-schemas.ts",

0 commit comments

Comments
 (0)