Skip to content

Commit

Permalink
chore: Refactor and clean up melos.yaml configuration file.
Browse files Browse the repository at this point in the history
Simplify and refactor melos.yaml:

- Use `exec` instead of `run` in `analyze` script
- Reformat for readability and consistency
- Use `packageFilters` instead of `select-package` in `dependency_validator` script
  • Loading branch information
lijy91 committed Apr 8, 2023
1 parent ee89718 commit f1dfa72
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ command:

scripts:
analyze:
run: |
melos exec -c 10 -- \
flutter analyze --fatal-infos
exec: flutter analyze --fatal-infos
description: Run `flutter analyze` for all packages.

format:
Expand All @@ -32,8 +30,8 @@ scripts:

dependency_validator:
exec: flutter pub run dependency_validator
select-package:
depends-on:
packageFilters:
dependsOn:
- dependency_validator

activate:
Expand Down

0 comments on commit f1dfa72

Please sign in to comment.