Fix: Rust-GBT packaging needs fixing

This commit is contained in:
junderw
2023-08-03 18:46:18 -07:00
committed by softsimon
parent b4ec69ce7a
commit 0535e8c5f9
5 changed files with 32 additions and 7 deletions

14
backend/npm_package.sh Executable file
View File

@@ -0,0 +1,14 @@
#/bin/sh
set -e
npm run build
# Remove previous package folder
rm -rf package
# Move JS and deps
mv dist package
mv node_modules package
# Remove symlink for rust-gbt and insert real folder
rm package/node_modules/rust-gbt
mv rust-gbt package/node_modules
# Clean up deps
npm run package-rm-build-deps