diff --git a/scripts/sdk/build.sh b/scripts/sdk/build.sh index 0d7e1170..b0040b61 100755 --- a/scripts/sdk/build.sh +++ b/scripts/sdk/build.sh @@ -1,7 +1,11 @@ #!/bin/bash +# Exit whenever one of the commands fail with a non-zero exit code +set -e +set -o pipefail # Enable extended globs so we can use the `!(filename)` glob syntax shopt -s extglob + rm -rf target/* yarn run vite build -c vite.sdk-assets-config.js yarn run vite build -c vite.sdk-lib-config.js