Skip to content

Commit 679bc4f

Browse files
AnotherHermitomgovich
authored andcommitted
Update package.json
Add "types" to exports to handle issue where typescript wouldn't recognize exported types when using ESM.
1 parent e708512 commit 679bc4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"umd": "./dist/index.umd.js",
1515
"import": "./dist/index.mjs",
1616
"require": "./dist/index.js",
17-
"default": "./dist/index.module.js"
17+
"default": "./dist/index.module.js",
18+
"types": "./dist/index.d.ts"
1819
}
1920
},
2021
"scripts": {

0 commit comments

Comments
 (0)