Skip to content

Commit df7151f

Browse files
committed
chore: fix melos for v3
1 parent 5cf90ab commit df7151f

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

melos.yaml

+7-8
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@ ide:
1515
command:
1616
version:
1717
linkToCommits: true
18-
19-
scripts:
20-
preversion:
21-
exec: dart test -j 1
22-
packageFilters:
23-
flutter: false
24-
version:
25-
exec: "$PWD/remove-prereleases-from-changelog.sh"
18+
hooks:
19+
pre:
20+
exec: dart test -j 1
21+
packageFilters:
22+
flutter: false
23+
preCommit:
24+
exec: "$PWD/remove-prereleases-from-changelog.sh"
2625

2726

2827

remove-prereleases-from-changelog.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Usage: ./remove-prereleases-from-changelog.sh
66

7-
current=$(cat CHANGELOG.md | grep -E '## [0-9]+\.[0-9]+\.[0-9]+(.+)' | head -n 1)
7+
current=$(cat CHANGELOG.md | grep -E '## [0-9]+\.[0-9]+\.[0-9]+(.*)' | head -n 1)
88
prerelease=$(echo $current | grep -E '## [0-9]+\.[0-9]+\.[0-9]+-(.+)')
99

1010
if [ -z "$prerelease" ]; then

0 commit comments

Comments
 (0)