Skip to content

Commit ce3b141

Browse files
authored
fix: Add types to package.json exports
Support TypeScript `bundler` module resolution
1 parent bfa49b9 commit ce3b141

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
@@ -15,7 +15,8 @@
1515
"exports": {
1616
".": {
1717
"import": "./dist/module.mjs",
18-
"require": "./dist/module.cjs"
18+
"require": "./dist/module.cjs",
19+
"types": "./dist/types.d.ts"
1920
}
2021
},
2122
"main": "./dist/module.cjs",

0 commit comments

Comments
 (0)