Skip to content

Commit 0133241

Browse files
committed
fix: move react & @types/react to devDep, fixes #1389
This is strictly to fix `yarn` problem of not deduping packages See yarnpkg/yarn#3951 (comment) for more details
1 parent 9648606 commit 0133241

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

package-lock.json

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

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,18 @@
3737
"@formatjs/intl-relativetimeformat": "^2.6.3",
3838
"@types/hoist-non-react-statics": "^3.3.1",
3939
"@types/invariant": "^2.2.30",
40-
"@types/react": "^16.0.0",
4140
"hoist-non-react-statics": "^3.3.0",
4241
"intl-format-cache": "^4.1.10",
4342
"intl-locales-supported": "^1.4.5",
4443
"intl-messageformat": "^6.1.5",
4544
"intl-messageformat-parser": "^3.0.7",
4645
"invariant": "^2.1.1",
47-
"react": "^16.3.0",
4846
"shallow-equal": "^1.1.0"
4947
},
48+
"peerDependencies": {
49+
"@types/react": "^16.0.0",
50+
"react": "^16.3.0"
51+
},
5052
"devDependencies": {
5153
"@babel/core": "^7.5.5",
5254
"@babel/node": "^7.5.5",
@@ -59,16 +61,17 @@
5961
"@types/jest": "^24.0.17",
6062
"@types/prop-types": "^15.7.1",
6163
"@types/react-dom": "^16.8.5",
64+
"@types/react": "^16.0.0",
6265
"@typescript-eslint/eslint-plugin": "^1.13.0",
6366
"@typescript-eslint/parser": "^1.13.0",
6467
"babel-jest": "^24.8.0",
6568
"benchmark": "^2.1.0",
6669
"cross-env": "^5.2.0",
67-
"enzyme": "^3.6.0",
6870
"enzyme-adapter-react-16": "^1.5.0",
6971
"enzyme-to-json": "^3.4.0",
70-
"eslint": "^6.1.0",
72+
"enzyme": "^3.6.0",
7173
"eslint-plugin-react": "^7.14.3",
74+
"eslint": "^6.1.0",
7275
"fs-extra": "^8.1.0",
7376
"full-icu": "^1.3.0",
7477
"glob": "^7.0.0",
@@ -80,14 +83,15 @@
8083
"pre-commit": "^1.2.2",
8184
"prettier": "^1.6.1",
8285
"react-dom": "^16.9.0",
86+
"react": "^16.3.0",
8387
"rimraf": "^2.4.2",
84-
"rollup": "^1.19.4",
8588
"rollup-plugin-babel": "^4.3.3",
8689
"rollup-plugin-commonjs": "^10.0.2",
8790
"rollup-plugin-node-resolve": "^5.2.0",
8891
"rollup-plugin-replace": "^2.0.0",
8992
"rollup-plugin-typescript2": "^0.22.1",
9093
"rollup-plugin-uglify": "^6.0.0",
94+
"rollup": "^1.19.4",
9195
"standard-version": "^7.0.0",
9296
"ts-jest": "^24.0.2",
9397
"ts-node": "^8.3.0",

0 commit comments

Comments
 (0)