browsertrix/frontend/.husky/pre-commit
sua yoo 08aa2f86f3
chore: Auto-commit extracted localization strings (#2089)
Removes `localize:extract` from pre-commit hook and commits changes from
`localize:extract` in frontend PR build check.
2024-09-30 10:48:13 -07:00

12 lines
275 B
Bash
Executable File

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# run hook only if frontend src changed
if git diff --name-only --cached | grep --quiet 'frontend/src/';
then
cd frontend
npx lint-staged
else
echo "(no frontend/src changes - skipping pre-commit hook)"
fi