Skip to content

Commit 906809d

Browse files
authored
fix(jsx-email): make react-dom a peerDep, allow v18 in range (#290)
1 parent 77cf070 commit 906809d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test-v18.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
- name: Install React v18
3535
run: |
3636
cd packages/jsx-email
37-
pnpm add react@^18
37+
pnpm add react@^18 react-dom@18
3838
cd ../create-jsx-email
39-
pnpm add react@^18
39+
pnpm add react@^18 react-dom@18
4040
4141
- name: Build Projects
4242
run: |

packages/jsx-email/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@
6666
"@jsx-email/plugin-inline": "workspace:^",
6767
"@jsx-email/plugin-minify": "workspace:^",
6868
"@jsx-email/plugin-pretty": "workspace:^",
69-
"react": "^18.2.0 || ^19"
69+
"react": "^18.2.0 || ^19",
70+
"react-dom": "^18.2.0 || ^19"
7071
},
7172
"dependencies": {
7273
"@dot/log": "^0.1.5",
@@ -106,7 +107,6 @@
106107
"postcss": "^8.4.32",
107108
"postcss-var-replace": "^1.0.0",
108109
"pretty-bytes": "^6.1.1",
109-
"react-dom": "^19",
110110
"react-router-dom": "7.0.1",
111111
"rehype": "^13.0.1",
112112
"rehype-stringify": "^10.0.0",

0 commit comments

Comments
 (0)