From 5ab2cab52858c4acf7c6dc296ef335af01944333 Mon Sep 17 00:00:00 2001 From: Anton Korzunov Date: Tue, 12 Nov 2019 18:51:38 +1100 Subject: [PATCH] fix: move @types/react from to peer dependencies, fixes #1391 --- package.json | 3 ++- yarn.lock | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b62a3f4a5..db1d3e793 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ ], "devDependencies": { "@hot-loader/react-dom": "^16.8.6", + "@types/react": "16", "babel-cli": "^6.7.5", "babel-core": "^6.26.3", "babel-eslint": "^8.2.3", @@ -98,11 +99,11 @@ "yarn-deduplicate": "^1.1.1" }, "peerDependencies": { + "@types/react": "^15.0.0 || ^16.0.0", "react": "^15.0.0 || ^16.0.0", "react-dom": "^15.0.0 || ^16.0.0" }, "dependencies": { - "@types/react": "^15.0.0 || ^16.0.0", "fast-levenshtein": "^2.0.6", "global": "^4.3.0", "hoist-non-react-statics": "^3.3.0", diff --git a/yarn.lock b/yarn.lock index 727fd6fb0..fdb5e1142 100644 --- a/yarn.lock +++ b/yarn.lock @@ -164,7 +164,7 @@ resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.5.7.tgz#c6f1e0d0109ff358b132d98b7b4025c7a7b707c5" integrity sha512-a6WH0fXkgPNiGIuLjjdpf0n/GnmgWZ4vLuVIJJnDwhmRDPEaiRBcy5ofQPh+EJFua0S1QWmk1745+JqZQGnJ8Q== -"@types/react@^16.9.11": +"@types/react@16": version "16.9.11" resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.11.tgz#70e0b7ad79058a7842f25ccf2999807076ada120" integrity sha512-UBT4GZ3PokTXSWmdgC/GeCGEJXE5ofWyibCcecRLUVN2ZBpXQGVgQGtG2foS7CrTKFKlQVVswLvf7Js6XA/CVQ==