Skip to content

Commit

Permalink
chore: move react and react-dom to peer deps
Browse files Browse the repository at this point in the history
  • Loading branch information
renbaoshuo committed Jan 10, 2025
1 parent 40e7723 commit 3933ca9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
## Install

```bash
npm install hexo-renderer-jsx --save
npm install hexo-renderer-jsx react react-dom --save
# or use yarn:
# yarn add hexo-renderer-jsx
# yarn add hexo-renderer-jsx react react-dom
```

## Author
Expand Down
18 changes: 11 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@
"author": "Baoshuo Ren <[email protected]>",
"license": "MIT",
"dependencies": {
"@babel/core": "^7.17.5",
"@babel/plugin-transform-react-jsx": "^7.17.3",
"@babel/preset-env": "^7.16.11",
"@babel/register": "^7.17.0",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"@babel/core": "^7.26.0",
"@babel/plugin-transform-react-jsx": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/register": "^7.25.9"
},
"peerDependencies": {
"react": "17.* || 18.* || 19.*",
"react-dom": "17.* || 18.* || 19.*"
},
"devDependencies": {
"eslint": "^8.18.0",
"eslint-config-hexo": "^5.0.0"
"eslint-config-hexo": "^5.0.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
}
}

0 comments on commit 3933ca9

Please sign in to comment.