build: add more changelog types

This commit is contained in:
Michael Kriese 2023-01-04 16:00:59 +01:00
parent 07db2bf08b
commit 1a3449a842
No known key found for this signature in database
GPG key ID: B83F553A0724D44E

View file

@ -1,10 +1,63 @@
import conventionalChangelogCore from 'conventional-changelog-core'; import conventionalChangelogCore from 'conventional-changelog-core';
import conventionalChangelogPreset from 'conventional-changelog-conventionalcommits'; import conventionalChangelogPreset from 'conventional-changelog-conventionalcommits';
import fs from "node:fs" import fs from 'node:fs';
const config = conventionalChangelogPreset(); const config = conventionalChangelogPreset({
types: [
{
type: 'feat',
section: 'Features',
},
{
type: 'feature',
section: 'Features',
},
{
type: 'fix',
section: 'Bug Fixes',
},
{
type: 'perf',
section: 'Performance Improvements',
},
{
type: 'revert',
section: 'Reverts',
},
{
type: 'docs',
section: 'Documentation',
},
{
type: 'style',
section: 'Styles',
},
{
type: 'chore',
section: 'Miscellaneous Chores',
},
{
type: 'refactor',
section: 'Code Refactoring',
},
{
type: 'test',
section: 'Tests',
},
{
type: 'build',
section: 'Build System',
},
{
type: 'ci',
section: 'Continuous Integration',
},
],
});
const file = process.argv[3] ? fs.createWriteStream(process.argv[3]): process.stdout; const file = process.argv[3]
? fs.createWriteStream(process.argv[3])
: process.stdout;
conventionalChangelogCore( conventionalChangelogCore(
{ {