mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-31 12:14:32 +01:00
12 lines
348 B
Bash
Executable File
12 lines
348 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
|
|
if [ -d "ui/desktop" ]; then
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
cd ui/desktop && npx lint-staged
|
|
else
|
|
echo "Warning: ui/desktop directory does not exist, skipping lint-staged"
|
|
fi
|
|
fi
|