@varlet/release 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/dist/index.js +9 -0
- package/package.json +4 -3
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -16,6 +16,15 @@ function changelog({ releaseCount = 0, file = "CHANGELOG.md", preset = "angular"
|
|
|
16
16
|
note.title = "BREAKING CHANGES";
|
|
17
17
|
discard = false;
|
|
18
18
|
});
|
|
19
|
+
const hasBreakingNotes = commit.notes.length > 0;
|
|
20
|
+
if (typeof commit.type === "string" && commit.type.endsWith("!")) {
|
|
21
|
+
commit.type = commit.type.slice(0, -1);
|
|
22
|
+
if (!hasBreakingNotes) commit.notes.push({
|
|
23
|
+
title: "BREAKING CHANGES",
|
|
24
|
+
text: ""
|
|
25
|
+
});
|
|
26
|
+
discard = false;
|
|
27
|
+
}
|
|
19
28
|
if (commit.type === "feat") commit.type = "Features";
|
|
20
29
|
else if (commit.type === "fix") commit.type = "Bug Fixes";
|
|
21
30
|
else if (commit.type === "perf") commit.type = "Performance Improvements";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/release",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "publish all packages, generate changelogs and check commit messages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"changelog",
|
|
@@ -35,10 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"lint-staged": {
|
|
37
37
|
"*.{md}": "prettier --write",
|
|
38
|
-
"*.{ts}": [
|
|
38
|
+
"*.{ts,js}": [
|
|
39
39
|
"prettier --write",
|
|
40
40
|
"eslint --fix"
|
|
41
|
-
]
|
|
41
|
+
],
|
|
42
|
+
"package.json": "prettier --write"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
45
|
"@clack/prompts": "^1.0.0",
|