-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.versionrc.cjs
57 lines (57 loc) · 1.53 KB
/
.versionrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
const defaultStandardVersion = {
scripts: {
prerelease: "./bin/repo/release/prerelease",
// prerelease:
// prebump / postbump
// prechangelog / postchangelog
// precommit/ postcommit
// pretag / posttag
},
releaseCount: 1,
bumpFiles: [
{
filename: "package.json",
type: "json",
},
],
skip: {
// changelog: true
},
// for available options in the conventional changelog configuration spec see
// https://github.com/conventional-changelog/conventional-changelog-config-spec/blob/master/versions/2.2.0/README.md
header: "Changelog",
types: [
{ type: "content", section: "Content" },
{ type: "docs", section: "Documentation" },
{ type: "feat", section: "Features" },
{ type: "theme", section: "Theme" },
{ type: "style", section: "Styling" },
{ type: "fix", section: "Bug Fixes" },
{ type: "perf", section: "Performance" },
{ type: "refactor", section: "Refactors" },
{ type: "revert", section: "Reverts" },
{ type: "test", section: "Tests" },
{ type: "chore", section: "Chore" },
{ type: "config", section: "Configuration" },
{ type: "build", section: "Build System" },
{ type: "ci", section: "CI" },
]
};
const localStandardVersion = {
bumpFiles: [
{
filename: "package.json",
type: "json",
},
{
filename: "assets/data/build.json",
type: "json",
},
],
header: "# Changelog",
};
const standardVersion = {
...defaultStandardVersion,
...localStandardVersion,
};
module.exports = standardVersion;