Skip to content

Commit

Permalink
Export the types file
Browse files Browse the repository at this point in the history
If there is an `exports` key set, Typescript requires the types file to be included in the list of the files exported.
  • Loading branch information
simon-tma authored Feb 29, 2024
1 parent 3600edd commit 2073220
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
],
"type": "module",
"source": "./src/js/index.js",
"exports": "./dist/index.js",
"exports": {
"default": "./dist/index.js",
"types": "./src/js/index.d.ts"
},
"module": "./dist/index.esm.js",
"types": "./src/js/index.d.ts",
"scripts": {
Expand Down

0 comments on commit 2073220

Please sign in to comment.