Debian Codegraph @

one-ini-wasm/create_wasm.sh

raw symbols SCIP
1 #!/bin/sh
2
3 if ! [ -x "$(command -v wasm-pack)" ];
4 then
5 cat <<- EOM
6 Error: The required command "wasm-pack" was not found!
7 Try "cargo install wasm-pack" to install it.
8 EOM
9 exit 1
10 fi
11
12 cargo clean
13 wasm-pack build --release --scope one-ini --target nodejs
14
15 (cd ./pkg || exit; npm pkg set name='@one-ini/wasm' && npm pack --dry-run)