Skip to content

Commit

Permalink
Restrict React version to 18.2.x to prevent tests from failing due to…
Browse files Browse the repository at this point in the history
… deprecation warnings

Also, remove npm from "engines" as it is not an engine.
  • Loading branch information
adamkudrna committed Jul 29, 2024
1 parent 59ad5dc commit 43110f9
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 51 deletions.
88 changes: 41 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
"url": "https://github.com/react-ui-org/react-ui"
},
"engines": {
"node": ">=18",
"npm": ">=9"
"node": ">=18"
},
"scripts": {
"build": "webpack --mode=production && webpack --mode=development",
Expand All @@ -54,8 +53,8 @@
},
"peerDependencies": {
"prop-types": "^15.8.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "~18.2.0",
"react-dom": "~18.2.0"
},
"devDependencies": {
"@babel/cli": "^7.22.10",
Expand Down Expand Up @@ -93,6 +92,8 @@
"postcss": "^8.4.29",
"postcss-loader": "^7.3.3",
"prop-types": "^15.8.1",
"react": "~18.2.0",
"react-dom": "~18.2.0",
"sass": "^1.66.1",
"sass-loader": "^13.3.2",
"stylelint": "^16.7.0",
Expand Down

0 comments on commit 43110f9

Please sign in to comment.