chore: Migrate to Melos 8 - #122
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Migrates the repository from Melos 7.x to Melos 8.2.0 and adopts the new built-in
analyzeandtestcommands.Changes
melosto^8.2.0.analyze,testandtest:selectscripts in favor of the built-inmelos analyzeandmelos testcommands.melos testauto-selects packages with atest/directory and picksflutter test/dart testper package.melos analyzeauto-picksflutter analyze/dart analyzeper package, and as of 8.2.0 defaults to--fatal-infos, so no explicit flag is needed.format/format-check/dartdocscripts (the built-inmelos formathas no--fix).CONTRIBUTING.mdto use the built-in commands.Notes on the 7.x -> 8.0.0 migration
The only breaking change in the migration guide is the
execscript restructuring (run+exec:block ->exec.command). This repo only uses therun: melos exec ...shorthand, so no conversion was required.Verification (Melos 8.2.0)
melos bootstrap-> 11 packages bootstrappedmelos analyze-> runsdart analyze --fatal-infos-> successmelos test-> all tests passedmelos run format-check-> success