Skip to content

Commit

Permalink
fix: ESM TypeScript def paths
Browse files Browse the repository at this point in the history
fix #116
  • Loading branch information
jedwards1211 committed Mar 20, 2023
1 parent 5f4e1af commit 67ac8da
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@
"sideEffects": false,
"exports": {
".": {
"types": "./es/index.d.mts",
"types": "./es/index.d.ts",
"import": "./es/index.mjs",
"require": "./index.js"
},
"./hooks": {
"types": "./es/hooks.mts",
"types": "./es/hooks.ts",

This comment has been minimized.

Copy link
@cmdcolin

cmdcolin Mar 21, 2023

should be hooks.d.ts?

This comment has been minimized.

Copy link
@jedwards1211

jedwards1211 Mar 21, 2023

Author Member

ugh yeah, just pushed a fix, thanks for pointing this out. Wish this were easier to test

"import": "./es/hooks.mjs",
"require": "./hooks.js"
},
"./HoverMenu": {
"types": "./es/HoverMenu.d.mts",
"types": "./es/HoverMenu.d.ts",
"import": "./es/HoverMenu.mjs",
"require": "./HoverMenu.js"
},
"./HoverPopover": {
"types": "./es/HoverPopover.d.mts",
"types": "./es/HoverPopover.d.ts",
"import": "./es/HoverPopover.mjs",
"require": "./HoverPopover.js"
},
"./hoverWorkaround": {
"types": "./es/hoverWorkaround.d.mts",
"types": "./es/hoverWorkaround.d.ts",
"import": "./es/hoverWorkaround.mjs",
"require": "./hoverWorkaround.js"
},
"./package.json": "./package.json",
"./index": {
"types": "./es/index.d.mts",
"types": "./es/index.d.ts",
"import": "./es/index.mjs",
"require": "./index.js"
}
Expand Down

0 comments on commit 67ac8da

Please sign in to comment.