mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-01 04:34:21 +01:00
fix: Only run husky precommit hooks when relevant (#1274)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
cd ui/desktop && npx lint-staged
|
||||
# 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
|
||||
Reference in New Issue
Block a user