Skip to content

Commit

Permalink
fix: Reference types per-entrypoint (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x authored Dec 6, 2023
1 parent 8499f21 commit 6954bf3
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,34 @@
"types": "index.d.ts",
"exports": {
".": {
"import": "./index.js",
"require": "./dist/index.cjs",
"types": "./index.d.ts"
"import": {
"types": "./index.d.ts",
"default": "./index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./connect": {
"import": "./connect.js",
"require": "./dist/connect.cjs",
"types": "./connect.d.ts"
"import": {
"types": "./connect.d.ts",
"default": "./connect.js"
},
"require": {
"types": "./dist/connect.d.cts",
"default": "./dist/connect.cjs"
}
},
"./devicedb": {
"import": "./devicedb.js",
"require": "./dist/devicedb.cjs",
"types": "./devicedb.d.ts"
"import": {
"types": "./devicedb.d.ts",
"default": "./devicedb.js"
},
"require": {
"types": "./dist/devicedb.d.cts",
"default": "./dist/devicedb.cjs"
}
}
},
"module": "index.js",
Expand Down

0 comments on commit 6954bf3

Please sign in to comment.