Skip to content

Commit

Permalink
fix(cjs/api): resolve correct module and types when imported (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd authored Jun 3, 2024
1 parent 59bb4ed commit 5e70105
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@
".": "./dist/loader.mjs",
"./cjs": "./dist/cjs/index.cjs",
"./cjs/api": {
"types": "./dist/cjs/api/index.d.cts",
"default": "./dist/cjs/api/index.cjs"
"import": {
"types": "./dist/cjs/api/index.d.mts",
"default": "./dist/cjs/api/index.mjs"
},
"require": {
"types": "./dist/cjs/api/index.d.cts",
"default": "./dist/cjs/api/index.cjs"
}
},
"./esm": "./dist/esm/index.mjs",
"./esm/api": {
Expand Down

0 comments on commit 5e70105

Please sign in to comment.