Skip to content

Commit 4fdfb38

Browse files
committed
Fix nodenext module support from TypeScript 4.7
* as per microsoft/TypeScript#48235 (comment) * follow-up preactjs/preact#3513
1 parent 6929a95 commit 4fdfb38

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,36 @@
88
"types": "dist/htm.d.ts",
99
"exports": {
1010
".": {
11+
"types": "./src/index.d.ts",
1112
"browser": "./dist/htm.module.js",
1213
"umd": "./dist/htm.umd.js",
1314
"import": "./dist/htm.mjs",
1415
"require": "./dist/htm.js"
1516
},
1617
"./": "./",
1718
"./preact": {
19+
"types": "./preact/index.d.ts",
1820
"browser": "./preact/index.module.js",
1921
"umd": "./preact/index.umd.js",
2022
"import": "./preact/index.mjs",
2123
"require": "./preact/index.js"
2224
},
2325
"./preact/standalone": {
26+
"types": "./preact/index.d.ts",
2427
"browser": "./preact/standalone.module.js",
2528
"umd": "./preact/standalone.umd.js",
2629
"import": "./preact/standalone.mjs",
2730
"require": "./preact/standalone.js"
2831
},
2932
"./react": {
33+
"types": "./react/index.d.ts",
3034
"browser": "./react/index.module.js",
3135
"umd": "./react/index.umd.js",
3236
"import": "./react/index.mjs",
3337
"require": "./react/index.js"
3438
},
3539
"./mini": {
40+
"types": "./mini/index.d.ts",
3641
"browser": "./mini/index.module.js",
3742
"umd": "./mini/index.umd.js",
3843
"import": "./mini/index.mjs",

0 commit comments

Comments
 (0)