Skip to content

Commit 0dc0181

Browse files
authored
fix: types export (#172)
* Add types to exports If `exports` is declared in package.json the ts compiler gets confused and won't respect the `types` values. * Add types to exports If `exports` is declared in package.json the ts compiler gets confused and won't respect the `types` values. * Add types to exports If `exports` is declared in package.json the ts compiler gets confused and won't respect the `types` values.
1 parent 974ebc9 commit 0dc0181

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/react-live-runner/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"unpkg": "dist/index.umd.js",
2222
"exports": {
2323
"require": "./dist/index.js",
24-
"default": "./dist/index.modern.js"
24+
"default": "./dist/index.modern.js",
25+
"types": "./dist/index.d.ts"
2526
},
2627
"types": "dist/index.d.ts",
2728
"sideEffects": false,

packages/react-runner-codemirror/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"unpkg": "dist/index.umd.js",
2222
"exports": {
2323
"require": "./dist/index.js",
24-
"default": "./dist/index.modern.js"
24+
"default": "./dist/index.modern.js",
25+
"types": "./dist/index.d.ts"
2526
},
2627
"types": "dist/index.d.ts",
2728
"sideEffects": false,

packages/react-runner/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"unpkg": "dist/index.umd.js",
2222
"exports": {
2323
"require": "./dist/index.js",
24-
"default": "./dist/index.modern.js"
24+
"default": "./dist/index.modern.js",
25+
"types": "./dist/index.d.ts"
2526
},
2627
"types": "dist/index.d.ts",
2728
"sideEffects": false,

0 commit comments

Comments
 (0)