You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
380 B
15 lines
380 B
#!/usr/bin/env bash
|
|
#
|
|
# Husky Pre-commit Hook
|
|
# Runs Build Architecture Guard to check staged files
|
|
#
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
echo "🔍 Running Build Architecture Guard (pre-commit)..."
|
|
bash ./scripts/build-arch-guard.sh --staged || {
|
|
echo
|
|
echo "💡 To bypass this check for emergency commits, use:"
|
|
echo " git commit --no-verify"
|
|
echo
|
|
exit 1
|
|
}
|
|
|