Export package.json (#908)

* Export package.json

* Correct exports structure to support multiple modules
This commit is contained in:
Rhys Evans 2020-08-06 23:10:06 +01:00 committed by GitHub
parent ca50c22e34
commit b7076bb24f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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",