Skip to content

chore: Migrate to Melos 8 - #122

Merged
spydon merged 1 commit into
mainfrom
chore/migrate-melos-8
Jul 8, 2026
Merged

chore: Migrate to Melos 8#122
spydon merged 1 commit into
mainfrom
chore/migrate-melos-8

Conversation

@spydon

@spydon spydon commented Jul 7, 2026

Copy link
Copy Markdown
Member

Description

Migrates the repository from Melos 7.x to Melos 8.2.0 and adopts the new built-in analyze and test commands.

Changes

  • Bump melos to ^8.2.0.
  • Remove the custom analyze, test and test:select scripts in favor of the built-in melos analyze and melos test commands.
    • melos test auto-selects packages with a test/ directory and picks flutter test/dart test per package.
    • melos analyze auto-picks flutter analyze/dart analyze per package, and as of 8.2.0 defaults to --fatal-infos, so no explicit flag is needed.
  • Keep the format / format-check / dartdoc scripts (the built-in melos format has no --fix).
  • Update the CI analyze job and CONTRIBUTING.md to use the built-in commands.

Notes on the 7.x -> 8.0.0 migration

The only breaking change in the migration guide is the exec script restructuring (run + exec: block -> exec.command). This repo only uses the run: melos exec ... shorthand, so no conversion was required.

Verification (Melos 8.2.0)

  • melos bootstrap -> 11 packages bootstrapped
  • melos analyze -> runs dart analyze --fatal-infos -> success
  • melos test -> all tests passed
  • melos run format-check -> success

Upgrade Melos from 7.x to 8.2.0 and adopt the built-in analyze and
test commands.

- Bump melos to ^8.2.0
- Remove custom analyze, test and test:select scripts in favor of the
  built-in melos analyze and melos test commands
- fatal-infos is on by default for melos analyze as of 8.2.0
- Keep the format scripts since the built-in format has no --fix
- Update CI and CONTRIBUTING to use the built-in commands

@luanpotter luanpotter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@spydon
spydon merged commit 96cf609 into main Jul 8, 2026
8 checks passed
@spydon
spydon deleted the chore/migrate-melos-8 branch July 8, 2026 05:52
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.

2 participants