From 9a16c95e75c52f79e80d9cba147e02c3c6058c64 Mon Sep 17 00:00:00 2001 From: Harmen Wessels <97173058+harmen-xb@users.noreply.github.com> Date: Tue, 16 Apr 2024 09:21:48 +0000 Subject: [PATCH] Moved node memory setting to crossmodel-app prepare (since issue occurs there). --- .github/workflows/build-and-test.yml | 2 -- applications/electron-app/package.json | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 00f85c46..3c79464d 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -11,8 +11,6 @@ defaults: jobs: build-and-test: - env: - NODE_OPTIONS: --max_old_space_size=8192 name: ${{ matrix.os }} strategy: diff --git a/applications/electron-app/package.json b/applications/electron-app/package.json index 3fa25fa3..9015fe29 100644 --- a/applications/electron-app/package.json +++ b/applications/electron-app/package.json @@ -25,7 +25,7 @@ "package:post": "rimraf plugins/crossmodel-lang* && yarn --cwd ../../extensions/crossmodel-lang symlink", "package:pre": "rimraf dist && rimraf plugins/crossmodel-lang && yarn package:extensions", "package:preview": "yarn package:pre && electron-builder -c.mac.identity=null --dir && yarn package:post", - "prepare": "theia build --mode development && yarn download:plugins", + "prepare": "export NODE_OPTIONS=--max_old_space_size=8192 && theia build --mode development && yarn download:plugins", "rebuild": "theia rebuild:electron --cacheRoot ../..", "start": "cross-env NODE_ENV=development theia start --plugins=local-dir:plugins", "test": "jest --passWithNoTests",