MMnode/.husky/pre-commit
turtle89431 4ea8431cd0
Some checks are pending
Publish to Comfy registry / Publish Custom Node to registry (push) Waiting to run
init
2026-09-26 11:11:23 -07:00

8 lines
237 B
Bash

#!/usr/bin/env sh
if git diff --cached --name-only | /usr/bin/grep -Eq "^frontend/.*\.(tsx?|css)$"; then
echo "Frontend changes detected, rebuilding..."
cd frontend && bun run build:release && cd ..
git add dist/
echo "Done."
fi