From 1a01283cd00e818f2413269599fec4ee80f21cd8 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 13 Nov 2026 20:54:26 +0000 Subject: [PATCH] fix: raise the Node heap limit for the SDK build The Publish workflow installs with npm and no lockfile, so it resolves the newest zod 4.x. Type-checking the generated models against it peaks above Node's default heap limit, and the last three publish runs failed with an out-of-memory error in tsc. Run tsc with an 8 GB heap in the build and compile scripts. --- .speakeasy/gen.yaml | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index a3e6c2157..18ffb2800 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -70,8 +70,8 @@ typescript: access: public provenance: true additionalScripts: - build: tsc && node scripts/unbarrel-imports.js - compile: tsc && node scripts/unbarrel-imports.js + build: node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js + compile: node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js postinstall: node scripts/check-types.js || true prepare: npm run build test: vitest --run --project unit diff --git a/package.json b/package.json index e72da78d5..8c3cadf80 100644 --- a/package.json +++ b/package.json @@ -71,14 +71,14 @@ }, "scripts": { "lint": "eslint --cache --max-warnings=0 src", - "build": "tsc && node scripts/unbarrel-imports.js", + "build": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js", "prepublishOnly": "npm run build", "postinstall": "node scripts/check-types.js || true", "test:e2e": "vitest --run --project e2e", "test:transit": "exit 0", "test:watch": "vitest --watch --project unit", "typecheck:transit": "exit 0", - "compile": "tsc && node scripts/unbarrel-imports.js", + "compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js", "prepare": "npm run build", "test": "vitest --run --project unit", "typecheck": "tsc --noEmit"