From e8c4e732ffc760285d3ef9123227f034778dc1cd Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Wed, 28 Aug 2019 13:57:51 +0200 Subject: [PATCH] [core] Fix missing type peer deps --- packages/material-ui-docs/package.json | 6 ++++++ packages/material-ui-icons/package.json | 6 ++++++ packages/material-ui-lab/package.json | 6 ++++++ packages/material-ui-styles/package.json | 6 ++++++ packages/material-ui-system/package.json | 6 ++++++ packages/material-ui-types/package.json | 7 ++++++- packages/material-ui/package.json | 6 ++++++ 7 files changed, 42 insertions(+), 1 deletion(-) diff --git a/packages/material-ui-docs/package.json b/packages/material-ui-docs/package.json index 08f7026ec17790..35766f4886e438 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 0bd0d28ca91a83..03744686c50a62 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 ca55a59fd35c75..0fbcc0ef230ad0 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.1", 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 8c74ff2123a10b..6f6cf62c74b434 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.7.1",