From 86631cee2f5309aa29f52ed6a569dc7ed94579f0 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Wed, 18 Nov 2020 11:04:38 +0100 Subject: [PATCH] prevent build memory leak, build one package ofter the other --- .github/workflows/build.yml | 2 -- package.json | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d0b3c076..6e91f175 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -148,8 +148,6 @@ jobs: - name: Try to build the packages id: build-packages run: yarn build:ci - env: - NODE_OPTIONS: --max_old_space_size=8192 - name: Send Slack notifications uses: act10ns/slack@v1 diff --git a/package.json b/package.json index c479eaf5..72b104fb 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "scripts": { "start": "yarn --cwd ./docs start", "build:docs": "yarn --cwd ./docs build", - "build:packages": "yarn clean:packages && node --max-old-space-size=8192 node_modules/.bin/rollup -c", - "build:ci": "yarn clean:packages && rollup -c --ci", + "build:packages": "yarn clean:packages && for dir in packages/*; do package=${dir#'packages/'}; rollup -c --scope @tiptap/$package; done", + "build:ci": "yarn clean:packages && for dir in packages/*; do package=${dir#'packages/'}; rollup -c --ci --scope @tiptap/$package; done", "clean:packages": "rm -rf ./packages/*/dist", "release": "yarn lint && yarn test && yarn build:packages && lerna publish", "lint": "eslint --quiet --no-error-on-unmatched-pattern ./",