Skip to content

Commit

Permalink
feat: use exports to expose an ES Module as well as CJS (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbesLindesay authored Apr 26, 2020
1 parent e5e834a commit 1fc71a4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,20 @@
"index.mjs",
"index.d.ts"
],
"exports": {
".": [
{
"import": "./index.mjs",
"require": "./index.js",
"default": "./index.js"
},
"./index.js"
]
},
"repository": {
"type": "git",
"url": "https://github.com/then/is-promise.git"
},
"author": "ForbesLindesay",
"license": "MIT"
}
}

0 comments on commit 1fc71a4

Please sign in to comment.