Skip to content

Commit 19874f8

Browse files
fix: export module types (#1156)
* fix: export module types * fix: move types into `import` conditional export block --------- Co-authored-by: Martin Schuhfuss <m.schuhfuss@gmail.com>
1 parent a3afc11 commit 19874f8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
"main": "dist/index.umd.js",
2323
"exports": {
2424
".": {
25-
"import": "./dist/index.esm.js",
25+
"import": {
26+
"types": "./dist/index.d.ts",
27+
"default": "./dist/index.esm.js"
28+
},
2629
"require": "./dist/index.umd.js",
2730
"umd": "./dist/index.umd.js",
2831
"browser": "./dist/index.esm.js"
@@ -97,4 +100,4 @@
97100
"access": "public",
98101
"registry": "https://wombat-dressing-room.appspot.com"
99102
}
100-
}
103+
}

0 commit comments

Comments
 (0)