pre-commit:
  commands:
    check-types:
      run: |
        echo "🔍 Running TypeScript checks..."
        bun run typecheck

    lint:
      run: |
        echo "✨ Running Biome on staged files..."
        ./node_modules/.bin/biome check --write --no-errors-on-unmatched --max-diagnostics=none {staged_files}
      stage_fixed: true

    format-package:
      run: |
        echo "📦 Formatting package.json..."
        bun run lint:syncpack
      stage_fixed: true

pre-push:
  commands:
    build:
      run: |
        echo "🔨 Building project..."
        bun run build
    test:
      run: |
        echo "🧪 Running tests..."
        bun run test
