From 1bba6b163debd2243acb9e2d115b8611f8d21a10 Mon Sep 17 00:00:00 2001 From: ylemkimon Date: Tue, 3 Nov 2020 02:24:19 +0900 Subject: [PATCH] fix(v2): add missing 'react' and 'webpack' peer dependencies (#3675) * fix(v2): add missing 'react' peer dependencies * fix(v2): add missing 'webpack' peer dependency --- packages/docusaurus-mdx-loader/package.json | 5 +++++ packages/docusaurus-plugin-google-analytics/package.json | 4 ++++ packages/docusaurus-plugin-google-gtag/package.json | 4 ++++ packages/docusaurus-plugin-sitemap/package.json | 4 ++++ 4 files changed, 17 insertions(+) diff --git a/packages/docusaurus-mdx-loader/package.json b/packages/docusaurus-mdx-loader/package.json index 375508986e45..b6c4185faa2f 100644 --- a/packages/docusaurus-mdx-loader/package.json +++ b/packages/docusaurus-mdx-loader/package.json @@ -42,6 +42,11 @@ "unist-builder": "^2.0.3", "unist-util-remove-position": "^2.0.1" }, + "peerDependencies": { + "react": "^16.13.1", + "react-dom": "^16.8.4", + "webpack": "^4.0.0 || ^5.0.0" + }, "engines": { "node": ">=10.15.1" } diff --git a/packages/docusaurus-plugin-google-analytics/package.json b/packages/docusaurus-plugin-google-analytics/package.json index 37273fc517d2..101cc078a497 100644 --- a/packages/docusaurus-plugin-google-analytics/package.json +++ b/packages/docusaurus-plugin-google-analytics/package.json @@ -15,6 +15,10 @@ "dependencies": { "@docusaurus/core": "2.0.0-alpha.66" }, + "peerDependencies": { + "react": "^16.8.4", + "react-dom": "^16.8.4" + }, "engines": { "node": ">=10.15.1" } diff --git a/packages/docusaurus-plugin-google-gtag/package.json b/packages/docusaurus-plugin-google-gtag/package.json index fcd81c330a7c..fe424db62eca 100644 --- a/packages/docusaurus-plugin-google-gtag/package.json +++ b/packages/docusaurus-plugin-google-gtag/package.json @@ -15,6 +15,10 @@ "dependencies": { "@docusaurus/core": "2.0.0-alpha.66" }, + "peerDependencies": { + "react": "^16.8.4", + "react-dom": "^16.8.4" + }, "engines": { "node": ">=10.15.1" } diff --git a/packages/docusaurus-plugin-sitemap/package.json b/packages/docusaurus-plugin-sitemap/package.json index 257b244ef08c..2301d83538d7 100644 --- a/packages/docusaurus-plugin-sitemap/package.json +++ b/packages/docusaurus-plugin-sitemap/package.json @@ -23,6 +23,10 @@ "fs-extra": "^8.1.0", "sitemap": "^3.2.2" }, + "peerDependencies": { + "react": "^16.8.4", + "react-dom": "^16.8.4" + }, "engines": { "node": ">=10.15.1" }