Skip to content

Commit 27b171d

Browse files
eunjae-leemillotp
andauthored
chore(javascript): split build task to avoid memory issue (#383)
* chore(javascript): split build task to avoid memory issue * Update clients/algoliasearch-client-javascript/rollup.config.js Co-authored-by: Pierre Millot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 5673173 commit 27b171d

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

clients/algoliasearch-client-javascript/.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Build clients
2929
shell: bash
30-
run: yarn build
30+
run: yarn build:all
3131

3232
- name: Publish to NPM
3333
shell: bash

clients/algoliasearch-client-javascript/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
],
77
"scripts": {
88
"build": "CLIENT=${0:-all} yarn rollup -c rollup.config.js",
9+
"build:all": "./scripts/build_all.sh",
910
"build:utils": "yarn build utils",
1011
"clean": "rm -rf packages/*/dist || true",
1112
"clean:utils": "yarn workspace @experimental-api-clients-automation/client-common clean && yarn workspace @experimental-api-clients-automation/requester-node-http clean && yarn workspace @experimental-api-clients-automation/requester-browser-xhr clean",
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
set -e
3+
4+
yarn build utils
5+
6+
PACKAGES_EXCEPT_FOR_UTILS=$(ls ./packages | grep -v -E "(client-common|requester-)")
7+
8+
for CLIENT in $PACKAGES_EXCEPT_FOR_UTILS
9+
do
10+
SKIP_UTILS=true yarn build $CLIENT
11+
done

0 commit comments

Comments
 (0)