Skip to content

Commit

Permalink
chore: switch the exports around (#16)
Browse files Browse the repository at this point in the history
Switches the types to be first in the list so some tools will resolve it
correctly.

Note this shouldn't really matter for TS itself since it will correctly
infer the types.
  • Loading branch information
43081j authored Jul 2, 2024
1 parent 614666f commit 9bd1f9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
"exports": {
".": {
"import": {
"default": "./dist/main.js",
"types": "./dist/main.d.ts"
"types": "./dist/main.d.ts",
"default": "./dist/main.js"
},
"require": {
"default": "./dist/main.cjs",
"types": "./dist/main.d.cts"
"types": "./dist/main.d.cts",
"default": "./dist/main.cjs"
}
},
"./package.json": "./package.json"
Expand Down

0 comments on commit 9bd1f9f

Please sign in to comment.