mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-04 11:21:06 +00:00
19 lines
303 B
Bash
19 lines
303 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -ex
|
||
|
|
||
|
cargo build --target wasm32-unknown-unknown
|
||
|
|
||
|
rm -rf pkg
|
||
|
mkdir pkg
|
||
|
cargo run -p wasm-bindgen-cli --bin wasm-bindgen -- \
|
||
|
../../target/wasm32-unknown-unknown/debug/typescript_tests.wasm \
|
||
|
--out-dir pkg \
|
||
|
--typescript
|
||
|
|
||
|
if [ ! -d node_modules ]; then
|
||
|
npm install
|
||
|
fi
|
||
|
|
||
|
npm run tsc
|