@repo-toolkit/changelog
Shared conventional changelog preset, generator, and CLI for repository releases.
Install
- npm
- Yarn
- pnpm
- Bun
npm install --save-dev @repo-toolkit/changelog
yarn add --dev @repo-toolkit/changelog
pnpm add --save-dev @repo-toolkit/changelog
bun add --dev @repo-toolkit/changelog
What It Exposes
Main entrypoint (@repo-toolkit/changelog):
generateChangelog(options)— run the generator and write the changelog to diskcreateGenerator(options)— build a configuredConventionalChangeloginstancecreatePreset(options)— build the conventional-commits preset used by the generatorDEFAULT_TYPES— the default commit-type → section mappingChangelogConfig— type alias for the options object
CLI binary: repo-toolkit-changelog
Quick Start
Run the CLI from the repository root:
repo-toolkit-changelog
Programmatic equivalent:
import { generateChangelog } from '@repo-toolkit/changelog';
await generateChangelog({
outputFile: 'CHANGELOG.md',
tagPrefix: 'v',
issuePrefixes: ['#', 'WEB-'],
scope: 'api',
});
Package Guide
- CLI: flags and default behavior
- Config File: repo-specific options via
--config - JavaScript API:
generateChangelog,createGenerator,createPreset - Preset Options:
types,scope,ignoreCommits, URL formatters - Default Sections: visible and hidden commit types