Skip to content

Conversation

@spalladino
Copy link
Contributor

Summary

  • Allow specifying multiple packages to format/lint: yarn format pkg1 pkg2 pkg3
  • Proper argument parsing with while loop (flags can be in any position)
  • Validate that specified packages exist before running
  • Run lint with parallel -j 50% to avoid overwhelming the system

Usage Examples

# Format multiple packages
yarn format stdlib foundation

# Lint multiple packages  
yarn lint archiver sequencer

# Check formatting on specific packages
yarn format --check stdlib pxe

# Flags can be in any position
yarn lint sequencer --check archiver

Test plan

  • Run yarn format stdlib - should format only stdlib
  • Run yarn format stdlib foundation - should format both
  • Run yarn format nonexistent - should error with "Package 'nonexistent' not found"
  • Run yarn lint --check - should check all packages

🤖 Generated with Claude Code

Updates the `format` and `lint` functions in yarn-project/bootstrap.sh:

- Allow specifying multiple packages: `yarn format pkg1 pkg2 pkg3`
- Proper argument parsing with while loop (flags can be in any position)
- Validate that specified packages exist before running
- Run lint with `parallel -j 50%` to avoid overwhelming the system

Examples:
```bash
yarn format stdlib foundation    # Format multiple packages
yarn lint archiver sequencer     # Lint multiple packages
yarn format --check stdlib       # Check formatting on one package
yarn lint --check                # Check lint on all packages
```

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@spalladino spalladino added this pull request to the merge queue Jan 23, 2026
@AztecBot
Copy link
Collaborator

AztecBot commented Jan 23, 2026

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/c23f087a7ff06b79�c23f087a7ff06b798;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_p2p/valid_epoch_pruned_slash.test.ts (396s) (code: 1) group:e2e-p2p-epoch-flakes (\033Santiago Palladino\033: chore: improve bootstrap format/lint to support multiple packages (#19907))

Merged via the queue into next with commit f9db009 Jan 23, 2026
16 checks passed
@spalladino spalladino deleted the palla/bootstrap-format-lint-multi-package branch January 23, 2026 20:45
spalladino added a commit that referenced this pull request Jan 23, 2026
Accidentally broke `yarn format` without any args in #19907
github-merge-queue bot pushed a commit that referenced this pull request Jan 23, 2026
Accidentally broke `yarn format` without any args in #19907
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants