Files
tkmind_go/.husky/pre-commit
T
Zane f3e586e724 Goose v2 base frontend (#2374)
Co-authored-by: Alex Hancock <alexhancock@block.xyz>
2025-04-28 10:20:00 -04:00

13 lines
417 B
Bash
Executable File

#!/usr/bin/env sh
# Only auto-format desktop TS code if relevant files are modified
if git diff --cached --name-only | grep -q "^ui/desktop/"; then
. "$(dirname -- "$0")/_/husky.sh"
cd ui/desktop && npx lint-staged
fi
# Only auto-format desktop TS code if relevant files are modified
if git diff --cached --name-only | grep -q "^ui-v2/"; then
. "$(dirname -- "$0")/_/husky.sh"
cd ui-v2 && npx lint-staged
fi