We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cf90ab commit df7151fCopy full SHA for df7151f
melos.yaml
@@ -15,14 +15,13 @@ ide:
15
command:
16
version:
17
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"
+ hooks:
+ pre:
+ exec: dart test -j 1
+ packageFilters:
+ flutter: false
+ preCommit:
+ exec: "$PWD/remove-prereleases-from-changelog.sh"
26
27
28
remove-prereleases-from-changelog.sh
@@ -4,7 +4,7 @@
4
5
# Usage: ./remove-prereleases-from-changelog.sh
6
7
-current=$(cat CHANGELOG.md | grep -E '## [0-9]+\.[0-9]+\.[0-9]+(.+)' | head -n 1)
+current=$(cat CHANGELOG.md | grep -E '## [0-9]+\.[0-9]+\.[0-9]+(.*)' | head -n 1)
8
prerelease=$(echo $current | grep -E '## [0-9]+\.[0-9]+\.[0-9]+-(.+)')
9
10
if [ -z "$prerelease" ]; then
0 commit comments