Skip to content

Commit b592a9a

Browse files
Fix types paths in exports map
The types conditions pointed at index.d.js, which does not exist. tsc strips the .js extension and finds index.d.ts beside it, so consumers were unaffected, but tools that read exports literally flag it.
1 parent 179cf65 commit b592a9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
"exports": {
1515
".": {
1616
"import": {
17-
"types": "./dist/esm/index.d.js",
17+
"types": "./dist/esm/index.d.ts",
1818
"default": "./dist/esm/index.js"
1919
},
2020
"require": {
21-
"types": "./dist/cjs/index.d.js",
21+
"types": "./dist/cjs/index.d.ts",
2222
"default": "./dist/cjs/index.js"
2323
}
2424
}

0 commit comments

Comments
 (0)