Skip to content

Commit 1ea98c3

Browse files
authored
fix custom changelog, convert to cjs and use relative path (#91)
1 parent b5a58cd commit 1ea98c3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
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": ["scripts/changelog-github-custom.js", { "repo": "sveltejs/vite-plugin-svelte" }],
3+
"changelog": ["../scripts/changelog-github-custom.js", { "repo": "sveltejs/vite-plugin-svelte" }],
44
"commit": false,
55
"linked": [],
66
"access": "public",

scripts/changelog-github-custom.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// - removed thanks notes. We're thanking contributors in the PRs or acknowledge their work in different ways
44
// - moved issue links to end of first line
55

6-
import { config } from 'dotenv';
7-
import { getInfo, getInfoFromPullRequest } from '@changesets/get-github-info';
6+
const { config } = require('dotenv');
7+
const { getInfo, getInfoFromPullRequest } = require('@changesets/get-github-info');
88

99
config();
1010

@@ -106,4 +106,4 @@ const changelogFunctions = {
106106
}
107107
};
108108

109-
export default changelogFunctions;
109+
module.exports = changelogFunctions;

0 commit comments

Comments
 (0)