goose/.husky/pre-commit
2026-03-11 12:46:05 +00:00

8 lines
297 B
Text
Executable file

# Only auto-format desktop TS code if relevant files are modified
if git diff --cached --name-only | grep -q "^ui/desktop/"; then
if [ -d "ui/desktop" ]; then
cd ui/desktop && pnpm exec lint-staged
else
echo "Warning: ui/desktop directory does not exist, skipping lint-staged"
fi
fi