#!/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
