Skip to content

Commit

Permalink
Export package.json (#908)
Browse files Browse the repository at this point in the history
* Export package.json

* Correct exports structure to support multiple modules
  • Loading branch information
wheresrhys committed Aug 6, 2020
1 parent ca50c22 commit b7076bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -7,8 +7,11 @@
"sideEffects": false,
"type": "module",
"exports": {
"import": "./src/index.js",
"require": "./dist/index.cjs"
".": {
"import": "./src/index.js",
"require": "./dist/index.cjs"
},
"./package.json": "./package.json"
},
"files": [
"src",
Expand Down

0 comments on commit b7076bb

Please sign in to comment.