Skip to content

Commit

Permalink
feat: export an esm module
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblehead committed Oct 4, 2024
1 parent e0fe1ee commit cbf5b14
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,23 @@
],
"license": "ISC",
"main": "index.js",
"module": "index.esm.mjs",
"exports": {
"require": "./index.js",
"import": "./index.esm.mjs"
},
"files": [
"index.js",
"index.esm.mjs"
],
"repository": {
"type": "git",
"url": "https://github.com/ungoldman/changelog-parser.git"
},
"scripts": {
"release": "gh-release && npm publish",
"test": "standard && node test | tap-spec"
"test": "standard && node test | tap-spec",
"build": "cp index.js index.esm.mjs && sed -i 's/module.exports =/export default/' index.esm.mjs",
"prepublishOnly": "npm build && npm test"
}
}

0 comments on commit cbf5b14

Please sign in to comment.