@r4lrgx/shared-config
Version:
🔩 My customized Config of semantic release and commitlint and others.
44 lines (36 loc) • 1.29 kB
JavaScript
import dedent from 'dedent';
// @r4lrgx/shared-config v1.0.6
// MIT License
var changelogPlugin = (options = {}) => {
options = Object.fromEntries(Object.entries(options).filter(([_, v]) => v !== void 0));
const { changelogFile, changelogTitle } = options;
const defaultChangelogTitle = dedent(`
<a name="changelog-top"></a>
<div align="center">
<h1>\u{1F4C5} Changelog</h1>
<p>\u{1F50E} Version History & Release Tracking.</p>
</div>
> [!IMPORTANT]
> **Maintenance Policy**
> Only the latest stable version receives active support.
> Security patches are backported for 6 months after new major releases.
> [!WARNING]
> **Breaking Changes Protocol**
> Major version updates (X.0.0) may contain backward-incompatible changes.
> Always check the migration guide before upgrading.
> [!NOTE]
> **Changelog Standards**
> This document follows [Keep a Changelog](https://keepachangelog.com/) conventions
---
`);
return [
"@semantic-release/changelog",
{
changelogFile: changelogFile ?? "CHANGELOG.md",
changelogTitle: changelogTitle ?? defaultChangelogTitle
}
];
};
export { changelogPlugin };
//# sourceMappingURL=changelog.js.map
//# sourceMappingURL=changelog.js.map