Skip to content

Commit 5ab2cab

Browse files
committed
fix: move @types/react from to peer dependencies, fixes #1391
1 parent 4167d4c commit 5ab2cab

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
],
5454
"devDependencies": {
5555
"@hot-loader/react-dom": "^16.8.6",
56+
"@types/react": "16",
5657
"babel-cli": "^6.7.5",
5758
"babel-core": "^6.26.3",
5859
"babel-eslint": "^8.2.3",
@@ -98,11 +99,11 @@
9899
"yarn-deduplicate": "^1.1.1"
99100
},
100101
"peerDependencies": {
102+
"@types/react": "^15.0.0 || ^16.0.0",
101103
"react": "^15.0.0 || ^16.0.0",
102104
"react-dom": "^15.0.0 || ^16.0.0"
103105
},
104106
"dependencies": {
105-
"@types/react": "^15.0.0 || ^16.0.0",
106107
"fast-levenshtein": "^2.0.6",
107108
"global": "^4.3.0",
108109
"hoist-non-react-statics": "^3.3.0",

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.5.7.tgz#c6f1e0d0109ff358b132d98b7b4025c7a7b707c5"
165165
integrity sha512-a6WH0fXkgPNiGIuLjjdpf0n/GnmgWZ4vLuVIJJnDwhmRDPEaiRBcy5ofQPh+EJFua0S1QWmk1745+JqZQGnJ8Q==
166166

167-
"@types/react@^16.9.11":
167+
"@types/react@16":
168168
version "16.9.11"
169169
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.11.tgz#70e0b7ad79058a7842f25ccf2999807076ada120"
170170
integrity sha512-UBT4GZ3PokTXSWmdgC/GeCGEJXE5ofWyibCcecRLUVN2ZBpXQGVgQGtG2foS7CrTKFKlQVVswLvf7Js6XA/CVQ==

0 commit comments

Comments
 (0)