Skip to content

Commit 5359f82

Browse files
committed
Adding changeset changelog format
1 parent 58402f4 commit 5359f82

File tree

5 files changed

+24
-2
lines changed

5 files changed

+24
-2
lines changed

.changeset/changelog-config.ts

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { ChangelogFunctions } from '@changesets/types';
2+
3+
const getReleaseLine: ChangelogFunctions['getReleaseLine'] = async (changeset) => {
4+
const [firstLine] = changeset.summary
5+
.split('\n')
6+
.map(l => l.trim())
7+
.filter(Boolean);
8+
return `- ${firstLine}`;
9+
};
10+
11+
const getDependencyReleaseLine: ChangelogFunctions['getDependencyReleaseLine'] = async () => {
12+
return '';
13+
};
14+
15+
const changelogFunctions: ChangelogFunctions = {
16+
getReleaseLine,
17+
getDependencyReleaseLine,
18+
};
19+
20+
export default changelogFunctions;

.changeset/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3-
"changelog": "@changesets/cli/changelog",
3+
"changelog": "./changelog-config.ts",
44
"commit": false,
55
"fixed": [],
66
"linked": [],

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ bin/
1010
roo-cline-*.vsix
1111

1212
# Local prompts and rules
13-
local-prompts
13+
/local-prompts

package-lock.json

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@
172172
},
173173
"devDependencies": {
174174
"@changesets/cli": "^2.27.10",
175+
"@changesets/types": "^6.0.0",
175176
"@types/diff": "^5.2.1",
176177
"@types/jest": "^29.5.14",
177178
"@types/mocha": "^10.0.7",

0 commit comments

Comments
 (0)