Skip to content

Commit

Permalink
package: add esm entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrenarchy committed Aug 6, 2018
1 parent 949b00b commit f47e808
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "oai-pmh",
"version": "2.0.1",
"description": "OAI-PMH harvester module for nodejs",
"main": "src/index.js",
"main": "src/index-entry.js",
"scripts": {
"cover": "nyc npm test",
"lint": "standard",
Expand Down
2 changes: 2 additions & 0 deletions src/index-entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const esmRequire = require('esm')(module)
module.exports = esmRequire('./index.js')

0 comments on commit f47e808

Please sign in to comment.