Skip to content

Commit bca5bbd

Browse files
fix: add missing require in pkg exports
1 parent 08c8159 commit bca5bbd

File tree

6 files changed

+14
-3
lines changed

6 files changed

+14
-3
lines changed

.changeset/afraid-socks-pay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opentf/react-node-repl": minor
3+
---
4+
5+
Added missing require in pkg exports.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
## Features
1818

1919
- Simple API
20-
- Powered by [WebContainer](https://webcontainers.io/)
20+
- Powered by [WebContainers](https://webcontainers.io/)
2121
- Install npm packages locally, directly in the terminal
2222
- Switch between `Terminal` or `Console` View
2323
- Keyboard shortcuts

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@
3131
"exports": {
3232
".": {
3333
"import": "./lib/index.js",
34+
"require": "./lib/index.js",
3435
"types": "./lib/index.d.ts"
3536
},
3637
"./lib/style.css": {
37-
"import": "./lib/style.css"
38+
"import": "./lib/style.css",
39+
"require": "./lib/style.css"
3840
}
3941
},
4042
"publishConfig": {

src/docs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default function Docs() {
6060
<li>
6161
<Typography level="body-md">
6262
Powered by{" "}
63-
<Link href="https://webcontainers.io/">WebContainer</Link>
63+
<Link href="https://webcontainers.io/">WebContainers</Link>
6464
</Typography>
6565
</li>
6666
<li>

src/lib/Editor.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ export default function Editor({ writeFile, onRun }: Props) {
102102
justifyContent: "space-between",
103103
alignItems: "center",
104104
color: "white",
105+
boxSizing: "content-box",
106+
fontSize: "14px",
105107
}}
106108
>
107109
<div

src/lib/LogsContainer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ function LogsContainer({ onRun, onClear, onStop }: Props) {
7171
justifyContent: "space-between",
7272
alignItems: "center",
7373
fontFamily: "monospace",
74+
boxSizing: 'content-box',
75+
fontSize: "14px",
7476
}}
7577
>
7678
<div

0 commit comments

Comments
 (0)