Skip to content

Commit 5e41687

Browse files
committed
chore: upgrade melos to 3.0.0-dev.0
1 parent 806c1b7 commit 5e41687

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- run: flutter --version
2929

3030
- name: Install melos
31-
run: dart pub global activate melos
31+
run: dart pub global activate melos 3.0.0-dev.0
3232

3333
- name: Add pub cache bin to PATH
3434
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH

melos.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ repository: https://github.com/hyiso/flutterw
33

44
command:
55
bootstrap:
6-
usePubspecOverrides: true
6+
hooks:
7+
post: dart pub get && dart run husky install
78
version:
89
# Generate commit links in package changelogs.
910
linkToCommits: true
@@ -12,6 +13,8 @@ command:
1213
branch: main
1314
# Additionally build a changelog at the root of the workspace.
1415
workspaceChangelog: true
16+
hooks:
17+
preCommit: dart scripts/generate_version.dart && git add packages/flutterw/lib/src/version.g.dart
1518

1619
packages:
1720
- examples/*
@@ -30,10 +33,9 @@ scripts:
3033
exec:
3134
concurrency: 1
3235
description: Run `dart test` for specific packages in this project.
33-
select-package:
36+
packageFilters:
3437
flutter: false
35-
dir-exists:
36-
- 'test/'
38+
dirExists: test
3739
# This tells Melos tests to ignore env variables passed to tests from `melos run test`
3840
# as they could change the behaviour of how tests filter packages.
3941
env:
@@ -43,7 +45,4 @@ scripts:
4345

4446
format-check:
4547
exec: dart format . --output=none --set-exit-if-changed
46-
description: Run `dart format` checks for all packages.
47-
48-
version: dart scripts/generate_version.dart && git add packages/flutterw/lib/src/version.g.dart
49-
bootstrap: dart pub get && dart run husky install
48+
description: Run `dart format` checks for all packages.

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ dev_dependencies:
99
commitlint_cli: ^0.2.1+1
1010
commitlint_config: ^0.1.1
1111
husky: ^0.1.3
12+
melos: ^3.0.0-dev.0
1213
path: ^1.8.0
1314
yaml: ^3.1.0
1415

0 commit comments

Comments
 (0)