Skip to content

Commit

Permalink
fix: only peer deps should use || semver ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan authored and snorrees committed Nov 4, 2022
1 parent b860b9c commit 9869feb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/inject/valid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"eslint-plugin-react-hooks": "^4.5.0",
"prettier": "^2.6.2",
"prettier-plugin-packagejson": "^2.3.0",
"react": "^18.0.0",
"react": "^18.2.0",
"rimraf": "^3.0.2",
"sanity": "dev-preview || 3.0.0-rc.0",
"typescript": "^4.7.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.5.0",
"parcel": "^2.7.0",
"react": "^17.0.0 || ^18.0.0",
"react": "^18.2.0",
"rimraf": "^3.0.2",
"typescript": "^4.7.3"
},
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/verify-package/invalid-eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"eslint-plugin-react-hooks": "^4.5.0",
"prettier": "^2.6.2",
"prettier-plugin-packagejson": "^2.3.0",
"react": "^17.0.0 || ^18.0.0",
"react": "^18.2.0",
"rimraf": "^3.0.2",
"sanity": "2.29.5-purple-unicorn.856",
"typescript": "^4.7.3"
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/verify-package/valid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"eslint-plugin-react-hooks": "^4.5.0",
"prettier": "^2.6.2",
"prettier-plugin-packagejson": "^2.3.0",
"react": "^17.0.0 || ^18.0.0",
"react": "^18.2.0",
"rimraf": "^3.0.2",
"sanity": "2.29.5-purple-unicorn.856",
"typescript": "^4.7.3"
Expand Down

0 comments on commit 9869feb

Please sign in to comment.