Files
modeling-app/scripts/build-wasm.sh

17 lines
388 B
Bash
Raw Normal View History

#!/bin/bash
set -euo pipefail
rm -rf rust/kcl-wasm-lib/pkg
mkdir -p rust/kcl-wasm-lib/pkg
rm -rf rust/kcl-lib/bindings
cd rust
export RUSTFLAGS='--cfg getrandom_backend="wasm_js"'
wasm-pack build kcl-wasm-lib --release --target web --out-dir pkg
export RUSTFLAGS=''
cargo test -p kcl-lib export_bindings
cd ..
cp rust/kcl-wasm-lib/pkg/kcl_wasm_lib_bg.wasm public
WIP: migrate from yarn v1 to npm (#6274) * WIP: migrate from yarn v1 to npm * Add tsc mapping script * More fixes * Add playwright as script * Fix more * more and more people just want more * Merge branch 'main' into pierremtb/adhoc/npm * use workspaces and fix circular deps Signed-off-by: Jess Frazelle <github@jessfraz.com> * fmt Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * New machine-api types * better lock file Signed-off-by: Jess Frazelle <github@jessfraz.com> * ignore typos in machine-api generated files Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * install from root Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix tsc Signed-off-by: Jess Frazelle <github@jessfraz.com> * New machine-api types * bettter install Signed-off-by: Jess Frazelle <github@jessfraz.com> * bettter install Signed-off-by: Jess Frazelle <github@jessfraz.com> * bettter install Signed-off-by: Jess Frazelle <github@jessfraz.com> * bettter install Signed-off-by: Jess Frazelle <github@jessfraz.com> * bettter install Signed-off-by: Jess Frazelle <github@jessfraz.com> * add comment Signed-off-by: Jess Frazelle <github@jessfraz.com> * add comment Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com> Co-authored-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-11 22:49:49 -04:00
npm run fmt:generated