Skip to content

Commit 51f5548

Browse files
cozimacodeSTRML
andauthored
Adding react and react-dom as dependencies for Yarn PnP (#525)
* Adding `react` and `react-dom` as dependencies for Yarn PnP Yarn V2 refuses access to packages which are not listed as a dependency. This should help fix it. Details: https://yarnpkg.com/advanced/rulebook#packages-should-only-ever-require-what-they-formally-list-in-their-dependencies * Update package.json * Widen react peerDependency range Co-authored-by: Samuel Reed <samuel.trace.reed@gmail.com>
1 parent b142121 commit 51f5548

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,9 @@
9090
"dependencies": {
9191
"classnames": "^2.2.5",
9292
"prop-types": "^15.6.0"
93+
},
94+
"peerDependencies": {
95+
"react": ">= 16.3.0",
96+
"react-dom": ">= 16.3.0"
9397
}
94-
}
98+
}

0 commit comments

Comments
 (0)