Skip to content

Commit

Permalink
Switch to CommonJS format (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwarning authored Nov 17, 2023
1 parent 3eb7110 commit db692a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/witty-pants-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@zazen/changesets-changelog': patch
---

Switch to CommonJS format
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
* @see https://github.com/atlassian/changesets/blob/main/packages/changelog-github/src/index.ts
*/

import { getInfo, getInfoFromPullRequest } from '@changesets/get-github-info'
const {
getInfo,
getInfoFromPullRequest,
} = require('@changesets/get-github-info')

/**
* @param {Record<string, any> | null} options
Expand Down Expand Up @@ -127,4 +130,4 @@ const changelogFunctions = {
},
}

export default changelogFunctions
module.exports = changelogFunctions
4 changes: 1 addition & 3 deletions packages/changesets-changelog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
},
"license": "ISC",
"author": "Jeff (https://tidaltheory.io)",
"files": [
"index.js"
],
"main": "index.cjs",
"dependencies": {
"@changesets/get-github-info": "0.5.2",
"dotenv": "16.3.1"
Expand Down

0 comments on commit db692a5

Please sign in to comment.