From aad45d82040cae6fba3d457f2b8836b9dadb4466 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Wed, 26 Oct 2022 15:53:45 -0600 Subject: [PATCH] fix: add flag during build script Fixes compilation on low-memory systems (<~2GB) Resolves #163 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fa97b19..26e04a6 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "scripts": { "dev": "npm run build && npm start", - "build": "tsc", + "build": "NODE_OPTIONS=\"--max-old-space-size=1024\" tsc", "start": "node dist/ass.js", "setup": "node dist/setup.js", "metrics": "node dist/metrics.js", @@ -91,4 +91,4 @@ "@types/uuid": "^8.3.1", "@types/ws": "^7.4.7" } -} \ No newline at end of file +}