Skip to content

Commit 4ae9176

Browse files
angeloashmoreclaude
andcommitted
fix: add types condition to exports entry
Tells tsdown to generate .d.mts declaration files for the package. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ba8d291 commit 4ae9176

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
],
2323
"type": "module",
2424
"exports": {
25-
".": "./dist/index.mjs",
25+
".": {
26+
"types": "./dist/index.d.mts",
27+
"default": "./dist/index.mjs"
28+
},
2629
"./package.json": "./package.json"
2730
},
2831
"publishConfig": {

0 commit comments

Comments
 (0)