diff --git a/query-engine/query-engine-wasm/build.sh b/query-engine/query-engine-wasm/build.sh index 184e4baf3545..a5b4859e82eb 100755 --- a/query-engine/query-engine-wasm/build.sh +++ b/query-engine/query-engine-wasm/build.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + # Call this script as `./build.sh ` OUT_VERSION="$1" @@ -12,7 +14,7 @@ OUT_NPM_NAME="@prisma/query-engine-wasm" # to avoid conflicts with libquery's `name = "query_engine"` library name declaration. # This little `sed -i` trick below is a hack to publish "@prisma/query-engine-wasm" # with the same binding filenames currently expected by the Prisma Client. -sed -i '' 's/name = "query_engine_wasm"/name = "query_engine"/g' Cargo.toml +sed -i 's/name = "query_engine_wasm"/name = "query_engine"/g' Cargo.toml # use `wasm-pack build --release` on CI only if [[ -z "$BUILDKITE" ]] && [[ -z "$GITHUB_ACTIONS" ]]; then @@ -23,7 +25,7 @@ fi wasm-pack build $BUILD_PROFILE --target $OUT_TARGET -sed -i '' 's/name = "query_engine"/name = "query_engine_wasm"/g' Cargo.toml +sed -i 's/name = "query_engine"/name = "query_engine_wasm"/g' Cargo.toml sleep 1