Skip to content

Commit

Permalink
Define type paths in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 2, 2024
1 parent 2000141 commit 5034fc1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,19 @@
"type": "module",
"exports": {
".": {
"node": "./index.js",
"default": "./core.js"
"node": {
"types": "./index.d.ts",
"import": "./index.js"
},
"default": {
"types": "./core.d.ts",
"import": "./core.js"
}
},
"./core": "./core.js"
"./core": {
"types": "./core.d.ts",
"import": "./core.js"
}
},
"sideEffects": false,
"engines": {
Expand Down

0 comments on commit 5034fc1

Please sign in to comment.