Skip to content

Commit b692ce0

Browse files
committed
breaking: Extend release-it config from @patternslib/dev.
1 parent 0bbbdca commit b692ce0

File tree

2 files changed

+4
-118
lines changed

2 files changed

+4
-118
lines changed

.release-it.js

Lines changed: 4 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,6 @@
1-
const fs = require("fs");
2-
const path = require("path");
1+
const config = require("@patternslib/dev/.release-it.js");
32

4-
const commits_template = fs
5-
.readFileSync(
6-
path.resolve(__dirname, ".release-it", "conventional-changelog-commit.hbs")
7-
)
8-
.toString();
3+
config.plugins["@release-it/conventional-changelog"].header =
4+
"# Changelog\n\nSee the [history](./docs/history/index.md) for older changelog entries.\n\n";
95

10-
module.exports = {
11-
npm: {
12-
publish: true,
13-
},
14-
git: {
15-
requireBranch: "master",
16-
commitMessage: "Release new version.",
17-
commitArgs: ["-n"],
18-
},
19-
plugins: {
20-
"@release-it/conventional-changelog": {
21-
infile: "CHANGES.md",
22-
header: "# Changelog\n\nSee the [history](./docs/history/index.md) for older changelog entries.\n\n",
23-
ignoreRecommendedBump: true,
24-
preset: {
25-
name: "conventionalcommits",
26-
types: [
27-
{
28-
type: "breaking",
29-
section: "Breaking Changes",
30-
},
31-
{
32-
type: "feat",
33-
section: "Features",
34-
},
35-
{
36-
type: "fix",
37-
section: "Bug Fixes",
38-
},
39-
{
40-
type: "maint",
41-
section: "Maintenance",
42-
},
43-
],
44-
},
45-
writerOpts: {
46-
commitPartial: commits_template,
47-
},
48-
},
49-
},
50-
};
6+
module.exports = config;

.release-it/conventional-changelog-commit.hbs

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)