Skip to content
Snippets Groups Projects
Commit 534feb9f authored by Ray Schamp's avatar Ray Schamp
Browse files

Pin React devDependencies, add peerDependencies

When the package is installed as a dependency, it should warn the installer that React is a peerDependency.  When installed this way, the devDependencies won't be installed, so only one version of React will be present. However when it's installed as a standalone project, React should be installed automatically as a devDependency.

I think this gives us the best of both worlds — simple development setup as well as supporting usage as an installed package.
parent 13efe77b
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,10 @@ ...@@ -25,6 +25,10 @@
"type": "git", "type": "git",
"url": "git+ssh://git@github.com/LLK/scratch-gui.git" "url": "git+ssh://git@github.com/LLK/scratch-gui.git"
}, },
"peerDependencies": {
"react": "15.x.x",
"react-dom": "15.x.x"
},
"devDependencies": { "devDependencies": {
"babel-core": "6.14.0", "babel-core": "6.14.0",
"babel-eslint": "6.1.2", "babel-eslint": "6.1.2",
...@@ -43,8 +47,8 @@ ...@@ -43,8 +47,8 @@
"lodash.defaultsdeep": "4.4.0", "lodash.defaultsdeep": "4.4.0",
"minilog": "3.0.1", "minilog": "3.0.1",
"opt-cli": "1.5.1", "opt-cli": "1.5.1",
"react": "15.x.x", "react": "15.3.2",
"react-dom": "15.x.x", "react-dom": "15.3.2",
"react-modal": "1.5.2", "react-modal": "1.5.2",
"scratch-blocks": "latest", "scratch-blocks": "latest",
"scratch-render": "latest", "scratch-render": "latest",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment