From d371e4bd7bc233300630fadcd820571c1810fb81 Mon Sep 17 00:00:00 2001 From: Miguel Fernandez Date: Mon, 27 Nov 2023 16:43:31 +0100 Subject: [PATCH] I didn't have wasm-pack installed, let's fix that --- query-engine/query-engine-wasm/Cargo.toml | 2 +- query-engine/query-engine-wasm/build.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/query-engine/query-engine-wasm/Cargo.toml b/query-engine/query-engine-wasm/Cargo.toml index 06738c456709..175f47a01ae5 100644 --- a/query-engine/query-engine-wasm/Cargo.toml +++ b/query-engine/query-engine-wasm/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [lib] doc = false crate-type = ["cdylib"] -name = "query_engine_wasm" +name = "query_engine" [dependencies] diff --git a/query-engine/query-engine-wasm/build.sh b/query-engine/query-engine-wasm/build.sh index 13a7c13e89ec..10e3008912f0 100755 --- a/query-engine/query-engine-wasm/build.sh +++ b/query-engine/query-engine-wasm/build.sh @@ -21,6 +21,13 @@ else BUILD_PROFILE="--dev" fi +# Check if wasm-pack is installed +if ! command -v wasm-pack &> /dev/null +then + echo "wasm-pack could not be found, installing now..." + # 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