Skip to content

Commit

Permalink
fix: use "exports.{import,require}.types"
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Jan 15, 2023
1 parent ed8c73b commit da66591
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,18 @@
"type": "module",
"exports": {
".": {
"types": "./module/index.d.ts",
"import": "./module/index.js",
"require": "./lib/index.js",
"browser": "./module/browser.js",
"import": {
"types": "./module/index.d.ts",
"default": "./module/index.js"
},
"require": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"browser": {
"types": "./module/browser.d.ts",
"default": "./module/browser.js"
},
"default": "./lib/index.js"
},
"./package.json": "./package.json"
Expand Down

0 comments on commit da66591

Please sign in to comment.