Files
turso/bindings/wasm/scripts/build
Elijah Morgan 4bda7803c3 Add build for nodejs or web
Change how VFS gets loaded based on feature flags
2025-01-01 16:54:31 -05:00

12 lines
222 B
Bash
Executable File

#!/bin/bash
TARGET=${1:-nodejs}
FEATURE="nodejs"
if [ "$TARGET" = "web" ]; then
FEATURE="web"
fi
wasm-pack build --no-pack --target $TARGET --no-default-features --features $FEATURE
cp package.json pkg/package.json