Skip to content

Commit

Permalink
fix: use require for custom changelog script (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Mar 25, 2022
1 parent c9ff137 commit 9413715
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-worms-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"aws-sdk-js-codemod": patch
---

Use require for custom changelog script
4 changes: 2 additions & 2 deletions .changeset/changelog.mjs → .changeset/changelog.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { config } from "dotenv";
const { config } = require("dotenv");

config();

Expand Down Expand Up @@ -31,4 +31,4 @@ const getReleaseLine = (changeset, _type) => {
}`;
};

export { getReleaseLine, getDependencyReleaseLine };
module.exports = { getReleaseLine, getDependencyReleaseLine };
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "./changelog.mjs",
"changelog": "./changelog.js",
"commit": false,
"fixed": [],
"linked": [],
Expand Down

0 comments on commit 9413715

Please sign in to comment.