Skip to content

Commit

Permalink
add types to package.json
Browse files Browse the repository at this point in the history
I'm surprised this is needed, but it seems to be. Types are not being inferred with just the `exports.types` field. This seems to be the case on npmjs.com, in VSCode, and via the typescript compiler.
  • Loading branch information
mmkal authored Jan 31, 2024
1 parent fd0bc62 commit 3610060
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"types": "./build/index.d.ts",
"sideEffects": false,
"engines": {
"node": ">=18"
Expand Down

0 comments on commit 3610060

Please sign in to comment.