Skip to content

Commit

Permalink
Merge pull request #57 from akphi/node16
Browse files Browse the repository at this point in the history
ensure Typescript properly resolve typings in ESM resolution mode
  • Loading branch information
bhousel authored Jun 3, 2022
2 parents f5c84f1 + 1b9743e commit 848fb76
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@
"main": "./dist/index.cjs",
"module": "./index.mjs",
"exports": {
"import": "./index.mjs",
"require": "./dist/index.cjs"
".": {
"import": {
"default": "./index.mjs",
"types": "./index.d.ts"
},
"require": "./dist/index.cjs"
}
},
"scripts": {
"all": "run-s clean test",
Expand Down

0 comments on commit 848fb76

Please sign in to comment.