From ddf21c795753a380f2dbea719714632e15dcac87 Mon Sep 17 00:00:00 2001 From: Alan Soares Date: Thu, 26 Oct 2023 11:21:01 +1300 Subject: [PATCH] chore: add NODE_OPTIONS to bundle command --- .github/workflows/test.yml | 2 +- .husky/pre-commit | 2 +- packages/ui/package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 05c3fa3e8..5aecba3f9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,6 +23,6 @@ jobs: uses: ./.github/actions/install-dependencies - name: Run tests - run: NODE_OPTIONS="--max-old-space-size=4096" pnpm test + run: pnpm test env: COSMOS_WALLET_MNEMONIC: ${{ secrets.COSMOS_WALLET_MNEMONIC }} diff --git a/.husky/pre-commit b/.husky/pre-commit index 4182f7be2..ec5422179 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,5 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -NODE_OPTIONS="--max-old-space-size=4096" pnpm compile +pnpm compile pnpm lint-staged diff --git a/packages/ui/package.json b/packages/ui/package.json index 32917592c..994daad68 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -48,9 +48,9 @@ "./unstated": "./src/lib/unstated.tsx" }, "scripts": { - "build": "NODE_OPTIONS=\"--max-old-space-size=4096\" pnpm compile && pnpm bundle", + "build": "pnpm compile && pnpm bundle", "compile": "tsc --noEmit", - "bundle": "tsup", + "bundle": "NODE_OPTIONS=\"--max-old-space-size=4096\" tsup", "preview": "vite preview", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build",