# 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 && npx lint-staged
  else
    echo "Warning: ui/desktop directory does not exist, skipping lint-staged"
  fi
fi
