Skip to content

Commit

Permalink
chore: merge main, fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Dec 4, 2023
2 parents 7370d1f + 845c140 commit f169fe7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions query-engine/query-engine-wasm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ OUT_NPM_NAME="@prisma/query-engine-wasm"
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
BUILD_PROFILE="--release"
else
if [[ -z "$BUILDKITE" ]] && [[ -z "$GITHUB_ACTIONS" ]]; then
BUILD_PROFILE="--dev"
else
BUILD_PROFILE="--release"
fi

# Check if wasm-pack is installed
Expand All @@ -28,6 +28,7 @@ then
# Install wasm-pack
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
fi

wasm-pack build $BUILD_PROFILE --target $OUT_TARGET

sed -i '' 's/name = "query_engine"/name = "query_engine_wasm"/g' Cargo.toml
Expand Down

0 comments on commit f169fe7

Please sign in to comment.