chore: Increase heap size when building

This commit is contained in:
Sidharth Vinod 2023-08-26 23:43:27 +05:30
parent 9bcfba6620
commit 60ed7d3273
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,12 @@
#!/usr/bin/env bash
# Fail on errors
set -euxo pipefail
# Increase heap size
export NODE_OPTIONS="--max_old_space_size=4096"
# Build mermaid
pnpm build
# Clone the Mermaid Live Editor repository