Skip to content

Commit d1826d7

Browse files
authored
chore: moving react and react-dom into being peerdeps (#24)
1 parent e7729bf commit d1826d7

File tree

2 files changed

+26
-50
lines changed

2 files changed

+26
-50
lines changed

package-lock.json

Lines changed: 9 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
"version": "10.0.1",
55
"main": "dist/index.node.js",
66
"browser": "dist/index.js",
7-
"dependencies": {
8-
"@readme/variable": "^7.2.1",
9-
"codemirror": "^5.48.2",
10-
"prop-types": "^15.7.2",
11-
"react": "^16.13.1",
12-
"react-codemirror2": "^7.2.1",
13-
"react-dom": "^16.13.1"
7+
"license": "ISC",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/readmeio/syntax-highlighter.git"
1411
},
12+
"homepage": "https://readmeio.github.io/syntax-highlighter/",
1513
"scripts": {
1614
"build": "webpack",
1715
"inspect": "jsinspect",
@@ -24,9 +22,16 @@
2422
"version": "conventional-changelog -i CHANGELOG.md -s && git add CHANGELOG.md",
2523
"watch": "webpack -w --progress"
2624
},
27-
"license": "ISC",
28-
"repository": "https://github.com/readmeio/syntax-highlighter",
29-
"homepage": "https://readmeio.github.io/syntax-highlighter/",
25+
"dependencies": {
26+
"@readme/variable": "^7.2.1",
27+
"codemirror": "^5.48.2",
28+
"prop-types": "^15.7.2",
29+
"react-codemirror2": "^7.2.1"
30+
},
31+
"peerDependencies": {
32+
"react": "16.x",
33+
"react-dom": "16.x"
34+
},
3035
"devDependencies": {
3136
"@babel/preset-env": "^7.11.5",
3237
"@babel/preset-react": "^7.10.4",
@@ -50,6 +55,8 @@
5055
"jsinspect": "^0.12.6",
5156
"node-sass": "^4.14.1",
5257
"prettier": "^2.0.1",
58+
"react": "^16.14.0",
59+
"react-dom": "^16.14.0",
5360
"sass-loader": "^10.0.1",
5461
"style-loader": "^1.2.1",
5562
"terser-webpack-plugin": "^4.1.0",

0 commit comments

Comments
 (0)