fix: install wasm snip in codespace basic setup

This commit is contained in:
Percs 2024-12-17 21:28:26 -06:00
parent bb9e1340f6
commit 35231bf9d9
2 changed files with 3 additions and 2 deletions

View file

@ -9,5 +9,6 @@ rm -rf binaryen-${VER}-x86_64-linux.tar.gz
mv binaryen-${VER}/bin/* ~/.local/bin
mv binaryen-${VER}/lib/* ~/.local/lib
rm -rf binaryen-${VER}
cargo install --git https://github.com/r58playz/wasm-snip
pnpm rewriter:build
pnpm build

View file

@ -3,8 +3,8 @@ set -euo pipefail
shopt -s inherit_errexit
# Check for cargo and wasm-bindgen
which cargo wasm-bindgen wasm-opt &> /dev/null || {
echo "Please install cargo, wasm-bindgen, and wasm-opt! Exiting..."
which cargo wasm-bindgen wasm-opt wasm-snip &> /dev/null || {
echo "Please install cargo, wasm-bindgen, wasm-opt, and wasm-snip! Exiting..."
exit 1
}