Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit cc06add

Browse files
thdkMatt Goo
authored andcommitted
fix: switch react to peerDependency for all packages (#940)
1 parent 2c7650f commit cc06add

File tree

29 files changed

+115
-57
lines changed

29 files changed

+115
-57
lines changed

packages/button/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
"type": "git",
1717
"url": "https://github.com/material-components/material-components-web-react.git"
1818
},
19+
"peerDependencies": {
20+
"react": "^16.4.2"
21+
},
1922
"dependencies": {
2023
"@material/button": "^1.1.0",
2124
"@material/react-ripple": "^0.13.0",
22-
"classnames": "^2.2.6",
23-
"react": "^16.4.2"
25+
"classnames": "^2.2.6"
2426
},
2527
"publishConfig": {
2628
"access": "public"

packages/card/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
"type": "git",
1717
"url": "https://github.com/material-components/material-components-web-react.git"
1818
},
19+
"peerDependencies": {
20+
"react": "^16.4.2"
21+
},
1922
"dependencies": {
2023
"@material/card": "^2.1.1",
2124
"@material/react-ripple": "^0.13.0",
22-
"classnames": "^2.2.6",
23-
"react": "^16.4.2"
25+
"classnames": "^2.2.6"
2426
},
2527
"publishConfig": {
2628
"access": "public"

packages/checkbox/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
"type": "git",
1616
"url": "https://github.com/material-components/material-components-web-react.git"
1717
},
18+
"peerDependencies": {
19+
"react": "^16.4.2"
20+
},
1821
"dependencies": {
1922
"@material/checkbox": "^2.1.1",
2023
"@material/react-ripple": "^0.13.0",
21-
"classnames": "^2.2.6",
22-
"react": "^16.3.2"
24+
"classnames": "^2.2.6"
2325
},
2426
"publishConfig": {
2527
"access": "public"

packages/chips/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@
1818
"type": "git",
1919
"url": "https://github.com/material-components/material-components-web-react.git"
2020
},
21+
"peerDependencies": {
22+
"react": "^16.4.2"
23+
},
2124
"dependencies": {
2225
"@material/chips": "^2.3.0",
2326
"@material/react-ripple": "^0.13.0",
2427
"classnames": "^2.2.6",
25-
"react": "^16.4.2",
2628
"react-is": "^16.8.6"
2729
},
2830
"publishConfig": {

packages/dialog/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414
"type": "git",
1515
"url": "https://github.com/material-components/material-components-web-react.git"
1616
},
17+
"peerDependencies": {
18+
"react": "^16.4.2"
19+
},
1720
"dependencies": {
1821
"@material/dialog": "^2.2.0",
1922
"@material/dom": "^1.0.0",
2023
"@material/react-button": "^0.13.0",
2124
"classnames": "^2.2.6",
22-
"focus-trap": "^4.0.2",
23-
"react": "^16.4.2"
25+
"focus-trap": "^4.0.2"
2426
},
2527
"publishConfig": {
2628
"access": "public"

packages/drawer/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
"type": "git",
1717
"url": "https://github.com/material-components/material-components-web-react.git"
1818
},
19+
"peerDependencies": {
20+
"react": "^16.4.2"
21+
},
1922
"dependencies": {
2023
"@material/drawer": "^2.3.0",
2124
"@material/list": "^2.3.0",
2225
"classnames": "^2.2.6",
23-
"focus-trap": "^4.0.2",
24-
"react": "^16.4.2"
26+
"focus-trap": "^4.0.2"
2527
},
2628
"publishConfig": {
2729
"access": "public"

packages/fab/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
"type": "git",
1717
"url": "https://github.com/material-components/material-components-web-react.git"
1818
},
19+
"peerDependencies": {
20+
"react": "^16.4.2"
21+
},
1922
"dependencies": {
2023
"@material/fab": "^2.1.1",
2124
"@material/react-ripple": "^0.13.0",
22-
"classnames": "^2.2.6",
23-
"react": "^16.4.2"
25+
"classnames": "^2.2.6"
2426
},
2527
"publishConfig": {
2628
"access": "public"

packages/floating-label/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
"type": "git",
1818
"url": "https://github.com/material-components/material-components-web-react.git"
1919
},
20+
"peerDependencies": {
21+
"react": "^16.4.2"
22+
},
2023
"dependencies": {
2124
"@material/floating-label": "^1.0.0",
22-
"classnames": "^2.2.6",
23-
"react": "^16.4.2"
25+
"classnames": "^2.2.6"
2426
},
2527
"publishConfig": {
2628
"access": "public"

packages/icon-button/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
"type": "git",
1717
"url": "https://github.com/material-components/material-components-web-react.git"
1818
},
19+
"peerDependencies": {
20+
"react": "^16.4.2"
21+
},
1922
"dependencies": {
2023
"@material/icon-button": "^2.1.1",
2124
"@material/react-ripple": "^0.13.0",
22-
"classnames": "^2.2.6",
23-
"react": "^16.3.2"
25+
"classnames": "^2.2.6"
2426
},
2527
"publishConfig": {
2628
"access": "public"

packages/layout-grid/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
"type": "git",
1717
"url": "https://github.com/material-components/material-components-web-react.git"
1818
},
19+
"peerDependencies": {
20+
"react": "^16.4.2"
21+
},
1922
"dependencies": {
2023
"@material/layout-grid": "^0.41.0",
21-
"classnames": "^2.2.6",
22-
"react": "^16.4.2"
24+
"classnames": "^2.2.6"
2325
},
2426
"publishConfig": {
2527
"access": "public"

0 commit comments

Comments
 (0)