From 5359f823f26df4d9323ac9fae14dc08d67ead0c8 Mon Sep 17 00:00:00 2001 From: a8trejo Date: Mon, 16 Dec 2024 15:12:51 -0800 Subject: [PATCH] Adding changeset changelog format --- .changeset/changelog-config.ts | 20 ++++++++++++++++++++ .changeset/config.json | 2 +- .gitignore | 2 +- package-lock.json | 1 + package.json | 1 + 5 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .changeset/changelog-config.ts diff --git a/.changeset/changelog-config.ts b/.changeset/changelog-config.ts new file mode 100644 index 0000000..0ad2388 --- /dev/null +++ b/.changeset/changelog-config.ts @@ -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; \ No newline at end of file diff --git a/.changeset/config.json b/.changeset/config.json index c8fca74..0d15d8d 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -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": [], diff --git a/.gitignore b/.gitignore index feb1fc2..ad38c8b 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,4 @@ bin/ roo-cline-*.vsix # Local prompts and rules -local-prompts +/local-prompts diff --git a/package-lock.json b/package-lock.json index 4e5c9e4..e79bda5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -46,6 +46,7 @@ }, "devDependencies": { "@changesets/cli": "^2.27.10", + "@changesets/types": "^6.0.0", "@types/diff": "^5.2.1", "@types/jest": "^29.5.14", "@types/mocha": "^10.0.7", diff --git a/package.json b/package.json index c0dd669..3d57994 100644 --- a/package.json +++ b/package.json @@ -172,6 +172,7 @@ }, "devDependencies": { "@changesets/cli": "^2.27.10", + "@changesets/types": "^6.0.0", "@types/diff": "^5.2.1", "@types/jest": "^29.5.14", "@types/mocha": "^10.0.7",