diff --git a/package.json b/package.json index 306482d8..ba727a42 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "private": false, "scripts": { "test": "./scripts/test", - "build": "./scripts/build", + "build": "./scripts/build-all", "prepack": "echo 'to pack, run yarn build && (cd dist; yarn pack)' && exit 1", "prepublishOnly": "echo 'to publish, run yarn build && (cd dist; yarn publish)' && exit 1", "format": "prettier --write --cache --cache-strategy metadata . !dist", diff --git a/scripts/build-all b/scripts/build-all index b634d304..26fcc0ca 100755 --- a/scripts/build-all +++ b/scripts/build-all @@ -3,7 +3,7 @@ set -exuo pipefail # build the core SDK package an all sub-packages -yarn build +bash ./scripts/build for dir in packages/*; do if [ -d "$dir" ]; then