Remove old pkg dir before creating release tgz file

This commit is contained in:
wtfsck 2021-05-13 21:44:48 +02:00
parent 08f5389eef
commit 995de22625
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ gen_release() {
curr_dir=$(pwd) curr_dir=$(pwd)
cd "$root_dir/src/rust/iced-x86-js" cd "$root_dir/src/rust/iced-x86-js"
rm -rf pkg/
wasm-pack build --mode force --target nodejs wasm-pack build --mode force --target nodejs
mkdir pkg/tests mkdir pkg/tests
cp ../../../LICENSE.txt pkg cp ../../../LICENSE.txt pkg