Files
turso/bindings/wasm/scripts/build
Elijah Morgan ad9d372e9c cleanup
remove happy-dom
try to fix some issues with tests
add wasm-pack as devDependency
update versions
2025-01-06 19:22:20 -05:00

13 lines
307 B
Bash
Executable File

#!/bin/bash
# get target as argument from cli, defaults to nodejs if no argument is supplied
TARGET=${1:-nodejs}
FEATURE="nodejs"
if [ "$TARGET" = "web" ]; then
FEATURE="web"
fi
npx wasm-pack build --no-pack --target $TARGET --no-default-features --features $FEATURE
cp package.json pkg/package.json