mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-26 04:24:21 +01:00
remove happy-dom try to fix some issues with tests add wasm-pack as devDependency update versions
13 lines
307 B
Bash
Executable File
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
|