2025-02-19 15:00:44 -05:00
|
|
|
# Only auto-format desktop TS code if relevant files are modified
|
|
|
|
|
if git diff --cached --name-only | grep -q "^ui/desktop/"; then
|
2025-05-29 14:29:21 -05:00
|
|
|
if [ -d "ui/desktop" ]; then
|
2026-03-11 08:46:05 -04:00
|
|
|
cd ui/desktop && pnpm exec lint-staged
|
2025-05-29 14:29:21 -05:00
|
|
|
else
|
|
|
|
|
echo "Warning: ui/desktop directory does not exist, skipping lint-staged"
|
|
|
|
|
fi
|
2025-04-28 07:20:00 -07:00
|
|
|
fi
|