From 4a3537533277fc7c735be0d34398675b63644848 Mon Sep 17 00:00:00 2001
From: Ray Schamp <ray@scratch.mit.edu>
Date: Fri, 16 Sep 2016 18:29:52 -0400
Subject: [PATCH] Make React a peer dependency

Multiple installations of React can cause issues if the package is used just for the components.
---
 package.json | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json
index d9d8e3cf2..a1c0397e3 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,10 @@
     "type": "git",
     "url": "git+ssh://git@github.com/LLK/scratch-gui.git"
   },
+  "peerDependencies": {
+    "react": "15.3.1",
+    "react-dom": "15.3.1"
+  },
   "devDependencies": {
     "babel-core": "6.14.0",
     "babel-eslint": "6.1.2",
@@ -25,8 +29,6 @@
     "html-webpack-plugin": "2.22.0",
     "json-loader": "0.5.4",
     "lodash.defaultsdeep": "4.4.0",
-    "react": "15.3.1",
-    "react-dom": "15.3.1",
     "scratch-blocks": "github:llk/scratch-blocks#develop",
     "scratch-render": "github:llk/scratch-render#develop",
     "scratch-vm": "github:llk/scratch-vm#develop",
-- 
GitLab