Skip to content

Commit

Permalink
Add -max_old_space_size option to build section of package.json (#864)
Browse files Browse the repository at this point in the history
Co-authored-by: Abby Hartman <[email protected]>
  • Loading branch information
abhahn and Abby Hartman authored May 22, 2024
1 parent 5e91823 commit 1342652
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ jobs:
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- run: npm ci
- run: NODE_OPTIONS=--max_old_space_size=8192 npm run build --if-present
- run: npm run build --if-present
- run: npm run test --if-present
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"watch": "tsc && vite build --watch",
"build": "tsc && node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build",
"watch": "tsc && node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js --watch",
"test": "jest",
"lint": "npx eslint src",
"lint:fix": "npx eslint --fix",
Expand Down

0 comments on commit 1342652

Please sign in to comment.