#!/bin/bash set -e # Format Dart files echo "Formatting Dart files..." if command -v dart &> /dev/null; then find .. -name "*.dart" \ -not -path "*/.*" \ -not -path "*/node_modules/*" \ -not -path "*/build/*" \ -exec dart format {} + else echo "Warning: dart not found. Skipping Dart formatting." fi