nose-pluto/scripts/build.sh
2025-10-01 10:14:15 -07:00

9 lines
284 B
Bash
Executable File

#!/bin/sh
SHA=$(git rev-parse --short HEAD)
bun build ./src/js/main.js \
--outfile ./public/bundle.js \
--target browser
printf "////\n// version: %s\n\n" "$SHA" | cat - ./public/bundle.js > ./public/bundle.tmp.js
mv ./public/bundle.tmp.js ./public/bundle.js