Skip to content

Commit 6989da1

Browse files
Nikhilesh KatakamNikhilesh Katakam
authored andcommitted
Moving react as a peerDependency
- Currently we have react 15.x.x as a hard dependency in react-json-schema. - If consumers of react-json-schema are still on 0.14.x, this means we will now have two versions of react in our final bundle. - To avoid this set react 15.x.x as a peer dependency. This way applications consuming react-json-schema can gradually migrate to react 15.x.x and still use react-json-schema with no sideeffects on bundle size
1 parent 4c60197 commit 6989da1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"lib",
3939
"dist"
4040
],
41-
"dependencies": {
41+
"peerDependencies": {
4242
"react": "^15.3.0"
4343
},
4444
"devDependencies": {
@@ -64,6 +64,7 @@
6464
"react-dom": "^15.3.0",
6565
"uglify-js": "^2.7.0",
6666
"webpack": "^1.12.2",
67-
"webpack-dev-server": "^1.12.0"
67+
"webpack-dev-server": "^1.12.0",
68+
"react": "^15.3.0"
6869
}
6970
}

0 commit comments

Comments
 (0)