Skip to content

Commit

Permalink
fix: switch react to peerDependency for all packages (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
thdk authored and Matt Goo committed Jun 18, 2019
1 parent 2c7650f commit cc06add
Show file tree
Hide file tree
Showing 29 changed files with 115 additions and 57 deletions.
6 changes: 4 additions & 2 deletions packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/button": "^1.1.0",
"@material/react-ripple": "^0.13.0",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/card": "^2.1.1",
"@material/react-ripple": "^0.13.0",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/checkbox": "^2.1.1",
"@material/react-ripple": "^0.13.0",
"classnames": "^2.2.6",
"react": "^16.3.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 3 additions & 1 deletion packages/chips/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/chips": "^2.3.0",
"@material/react-ripple": "^0.13.0",
"classnames": "^2.2.6",
"react": "^16.4.2",
"react-is": "^16.8.6"
},
"publishConfig": {
Expand Down
6 changes: 4 additions & 2 deletions packages/dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/dialog": "^2.2.0",
"@material/dom": "^1.0.0",
"@material/react-button": "^0.13.0",
"classnames": "^2.2.6",
"focus-trap": "^4.0.2",
"react": "^16.4.2"
"focus-trap": "^4.0.2"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/drawer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/drawer": "^2.3.0",
"@material/list": "^2.3.0",
"classnames": "^2.2.6",
"focus-trap": "^4.0.2",
"react": "^16.4.2"
"focus-trap": "^4.0.2"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/fab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/fab": "^2.1.1",
"@material/react-ripple": "^0.13.0",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/floating-label/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/floating-label": "^1.0.0",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/icon-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/icon-button": "^2.1.1",
"@material/react-ripple": "^0.13.0",
"classnames": "^2.2.6",
"react": "^16.3.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/layout-grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/layout-grid": "^0.41.0",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/line-ripple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/line-ripple": "^1.0.0",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/linear-progress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/linear-progress": "^1.1.0",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,17 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/dom": "^1.1.0",
"@material/list": "^1.0.0",
"@material/react-checkbox": "^0.13.0",
"@material/react-radio": "^0.13.0",
"@material/react-ripple": "^0.13.0",
"classnames": "^2.2.6",
"memoize-one": "^5.0.4",
"react": "^16.4.2"
"memoize-one": "^5.0.4"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/material-icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/react-ripple": "^0.13.0",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 5 additions & 3 deletions packages/menu-surface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"dependencies": {
"@material/menu-surface": "^1.0.1",
"classnames": "^2.2.6",
"peerDependencies": {
"react": "^16.4.2",
"react-dom": "^16.4.2"
},
"dependencies": {
"@material/menu-surface": "^1.0.1",
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
}
Expand Down
6 changes: 4 additions & 2 deletions packages/menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/menu": "^1.1.0",
"@material/react-list": "^0.13.2",
"@material/react-menu-surface": "^0.13.0",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/notched-outline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/notched-outline": "^1.1.1",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/radio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/form-field": "^0.41.0",
"@material/radio": "^1.1.0",
"@material/react-ripple": "^0.13.0",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 3 additions & 1 deletion packages/ripple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/dom": "^1.0.0",
"@material/ripple": "^1.0.0",
"classnames": "^2.2.6",
"react": "^16.4.2",
"utility-types": "^3.2.1"
},
"publishConfig": {
Expand Down
6 changes: 4 additions & 2 deletions packages/select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,17 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/react-floating-label": "^0.13.0",
"@material/react-line-ripple": "^0.13.0",
"@material/react-menu": "^0.13.2",
"@material/react-menu-surface": "^0.13.0",
"@material/react-notched-outline": "^0.13.0",
"@material/select": "^1.1.1",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/snackbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/snackbar": "^1.0.0",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/switch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/react-ripple": "^0.13.0",
"@material/switch": "^1.0.0",
"classnames": "^2.2.6",
"react": "^16.3.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/tab-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/react-tab": "^0.13.0",
"@material/react-tab-scroller": "^0.13.0",
"@material/tab-bar": "^1.0.0",
"classnames": "^2.2.6",
"react": "^16.3.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 4 additions & 2 deletions packages/tab-indicator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@
"type": "git",
"url": "https://github.com/material-components/material-components-web-react.git"
},
"peerDependencies": {
"react": "^16.4.2"
},
"dependencies": {
"@material/tab-indicator": "^1.0.0",
"classnames": "^2.2.6",
"react": "^16.4.2"
"classnames": "^2.2.6"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit cc06add

Please sign in to comment.