Skip to content

Commit

Permalink
Fix ESM types
Browse files Browse the repository at this point in the history
The ESM types were not included in the package. Also The `export` field
included the `types` property, which shouldn’t be needed if the type
definitions filename matches the name of the file they type.
  • Loading branch information
remcohaszing committed Mar 20, 2023
1 parent 968f7c0 commit 82e3604
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"types": "./index.d.ts",
"exports": {
"require": "./index.js",
"import": "./index.mjs",
"types": "./index.d.ts"
"import": "./index.mjs"
},
"dependencies": {},
"devDependencies": {
Expand All @@ -28,7 +27,8 @@
"files": [
"index.js",
"index.mjs",
"index.d.ts"
"index.d.ts",
"index.d.mts"
],
"license": "MIT",
"typings": "./index.d.ts"
Expand Down

0 comments on commit 82e3604

Please sign in to comment.