Skip to content

Commit 9413715

Browse files
authored
fix: use require for custom changelog script (#122)
1 parent c9ff137 commit 9413715

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/brown-worms-bake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"aws-sdk-js-codemod": patch
3+
---
4+
5+
Use require for custom changelog script

.changeset/changelog.mjs renamed to .changeset/changelog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { config } from "dotenv";
1+
const { config } = require("dotenv");
22

33
config();
44

@@ -31,4 +31,4 @@ const getReleaseLine = (changeset, _type) => {
3131
}`;
3232
};
3333

34-
export { getReleaseLine, getDependencyReleaseLine };
34+
module.exports = { getReleaseLine, getDependencyReleaseLine };

.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": "./changelog.mjs",
3+
"changelog": "./changelog.js",
44
"commit": false,
55
"fixed": [],
66
"linked": [],

0 commit comments

Comments
 (0)