Adding changeset changelog format

This commit is contained in:
a8trejo
2024-12-16 15:12:51 -08:00
parent 58402f4654
commit 5359f823f2
5 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
import { ChangelogFunctions } from '@changesets/types';
const getReleaseLine: ChangelogFunctions['getReleaseLine'] = async (changeset) => {
const [firstLine] = changeset.summary
.split('\n')
.map(l => l.trim())
.filter(Boolean);
return `- ${firstLine}`;
};
const getDependencyReleaseLine: ChangelogFunctions['getDependencyReleaseLine'] = async () => {
return '';
};
const changelogFunctions: ChangelogFunctions = {
getReleaseLine,
getDependencyReleaseLine,
};
export default changelogFunctions;

View File

@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json",
"changelog": "@changesets/cli/changelog",
"changelog": "./changelog-config.ts",
"commit": false,
"fixed": [],
"linked": [],