Skip to content

Commit 2073220

Browse files
authored
Export the types file
If there is an `exports` key set, Typescript requires the types file to be included in the list of the files exported.
1 parent 3600edd commit 2073220

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
],
3535
"type": "module",
3636
"source": "./src/js/index.js",
37-
"exports": "./dist/index.js",
37+
"exports": {
38+
"default": "./dist/index.js",
39+
"types": "./src/js/index.d.ts"
40+
},
3841
"module": "./dist/index.esm.js",
3942
"types": "./src/js/index.d.ts",
4043
"scripts": {

0 commit comments

Comments
 (0)