diff --git a/build.sh b/build.sh new file mode 100644 index 0000000000..4948a73ae4 --- /dev/null +++ b/build.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +set -euo pipefail + +# 1. Build frontend (Vite outputs to dist/) +cd studio/frontend +npm install +npm run build # outputs to studio/frontend/dist/ +cd ../.. + +# 2. Clean old artifacts +rm -rf build dist *.egg-info + +# 3. Build wheel +python -m build + +# 4. Optionally publish +if [ "${1:-}" = "publish" ]; then + python -m twine upload dist/* +fi