diff --git a/packages/material-ui-docs/package.json b/packages/material-ui-docs/package.json index ee9b1c77477495..d50e2e5a46a5c6 100644 --- a/packages/material-ui-docs/package.json +++ b/packages/material-ui-docs/package.json @@ -33,9 +33,15 @@ }, "peerDependencies": { "@material-ui/core": "^4.0.1", + "@types/react": "^16.8.6", "react": "^16.8.0", "react-dom": "^16.8.0" }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + }, "dependencies": { "@babel/runtime": "^7.4.4", "@material-ui/utils": "^4.1.0", diff --git a/packages/material-ui-icons/package.json b/packages/material-ui-icons/package.json index 12547f6aedf768..41dcae8afd32df 100644 --- a/packages/material-ui-icons/package.json +++ b/packages/material-ui-icons/package.json @@ -39,9 +39,15 @@ }, "peerDependencies": { "@material-ui/core": "^4.0.0", + "@types/react": "^16.8.6", "react": "^16.8.0", "react-dom": "^16.8.0" }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + }, "dependencies": { "@babel/runtime": "^7.4.4" }, diff --git a/packages/material-ui-lab/package.json b/packages/material-ui-lab/package.json index 0f953939cc3427..a5545167e2b66f 100644 --- a/packages/material-ui-lab/package.json +++ b/packages/material-ui-lab/package.json @@ -35,9 +35,15 @@ }, "peerDependencies": { "@material-ui/core": "^4.7.0", + "@types/react": "^16.8.6", "react": "^16.8.0", "react-dom": "^16.8.0" }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + }, "dependencies": { "@babel/runtime": "^7.4.4", "@material-ui/utils": "^4.7.1", diff --git a/packages/material-ui-styles/package.json b/packages/material-ui-styles/package.json index 4a194e9a8f6f41..03c06d95fcfbfb 100644 --- a/packages/material-ui-styles/package.json +++ b/packages/material-ui-styles/package.json @@ -38,9 +38,15 @@ "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{ts,tsx}\"" }, "peerDependencies": { + "@types/react": "^16.8.6", "react": "^16.8.0", "react-dom": "^16.8.0" }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + }, "dependencies": { "@babel/runtime": "^7.4.4", "@emotion/hash": "^0.7.4", diff --git a/packages/material-ui-system/package.json b/packages/material-ui-system/package.json index 2d6829b34ef81e..cc934e1cbc0948 100644 --- a/packages/material-ui-system/package.json +++ b/packages/material-ui-system/package.json @@ -38,9 +38,15 @@ "typescript": "tslint -p tsconfig.json \"src/**/*.{ts,tsx}\"" }, "peerDependencies": { + "@types/react": "^16.8.6", "react": "^16.8.0", "react-dom": "^16.8.0" }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + }, "dependencies": { "@babel/runtime": "^7.4.4", "@material-ui/utils": "^4.7.1", diff --git a/packages/material-ui-types/package.json b/packages/material-ui-types/package.json index 3ddb093a133025..01faef3487e317 100644 --- a/packages/material-ui-types/package.json +++ b/packages/material-ui-types/package.json @@ -34,7 +34,12 @@ "publishConfig": { "access": "public" }, - "dependencies": { + "peerDependencies": { "@types/react": "*" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } } diff --git a/packages/material-ui/package.json b/packages/material-ui/package.json index 87e3f3dc9204bc..7310ea55aac7f6 100644 --- a/packages/material-ui/package.json +++ b/packages/material-ui/package.json @@ -37,9 +37,15 @@ "typescript": "tslint -p tsconfig.json \"{src,test}/**/*.{ts,tsx}\" && tsc -p tsconfig.test.json" }, "peerDependencies": { + "@types/react": "^16.8.6", "react": "^16.8.0", "react-dom": "^16.8.0" }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + }, "dependencies": { "@babel/runtime": "^7.4.4", "@material-ui/styles": "^4.8.2",