Skip to content

Commit

Permalink
Merge pull request #148 from solaris007/fix-esm-module
Browse files Browse the repository at this point in the history
  • Loading branch information
pmowrer authored Jan 23, 2024
2 parents c9b94c8 + b75da5f commit dbf89dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0-development",
"description": "Plugins for `semantic-release` allowing it to be used with a monorepo.",
"main": "src/index.js",
"type": "module",
"files": [
"src"
],
Expand All @@ -13,7 +14,7 @@
},
"license": "MIT",
"peerDependencies": {
"semantic-release": ">=20"
"semantic-release": ">=22.0.7"
},
"dependencies": {
"debug": "^4.3.4",
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,4 @@ const fail = wrapStep(

const tagFormat = `${readPkg.sync().name}-v\${version}`;

//TODO Change to esm export when https://github.com/semantic-release/semantic-release/pull/3037 is merged
module.exports = { analyzeCommits, generateNotes, success, fail, tagFormat };
export { analyzeCommits, generateNotes, success, fail, tagFormat };

0 comments on commit dbf89dc

Please sign in to comment.