From 62015e7604f6302a3a7c55561547533831c1de71 Mon Sep 17 00:00:00 2001 From: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:39:21 -0500 Subject: [PATCH] fix: move dependencies to peer dependencies (#1019) * fix: move docusaurus dependencies to peer dependencies * update plugin's package.json --- .../docusaurus-plugin-openapi-docs/package.json | 13 ++++++++----- .../docusaurus-theme-openapi-docs/package.json | 16 ++++++++++------ 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/packages/docusaurus-plugin-openapi-docs/package.json b/packages/docusaurus-plugin-openapi-docs/package.json index 6a78542e2..b3cb85e88 100644 --- a/packages/docusaurus-plugin-openapi-docs/package.json +++ b/packages/docusaurus-plugin-openapi-docs/package.json @@ -34,13 +34,13 @@ "@types/json-schema": "^7.0.9", "@types/lodash": "^4.14.176", "@types/mustache": "^4.1.2", - "eslint-plugin-prettier": "^5.0.1" + "eslint-plugin-prettier": "^5.0.1", + "@docusaurus/plugin-content-docs": "^3.5.0", + "@docusaurus/utils": "^3.5.0", + "@docusaurus/utils-validation": "^3.5.0" }, "dependencies": { "@apidevtools/json-schema-ref-parser": "^11.5.4", - "@docusaurus/plugin-content-docs": "^3.5.0", - "@docusaurus/utils": "^3.5.0", - "@docusaurus/utils-validation": "^3.5.0", "@redocly/openapi-core": "^1.10.5", "allof-merge": "^0.6.6", "chalk": "^4.1.2", @@ -57,7 +57,10 @@ "xml-formatter": "^2.6.1" }, "peerDependencies": { - "react": "^16.8.4 || ^17.0.0 || ^18.0.0" + "react": "^16.8.4 || ^17.0.0 || ^18.0.0", + "@docusaurus/plugin-content-docs": "^3.5.0", + "@docusaurus/utils": "^3.5.0", + "@docusaurus/utils-validation": "^3.5.0" }, "engines": { "node": ">=14" diff --git a/packages/docusaurus-theme-openapi-docs/package.json b/packages/docusaurus-theme-openapi-docs/package.json index a69c2e858..5ad65bbc7 100644 --- a/packages/docusaurus-theme-openapi-docs/package.json +++ b/packages/docusaurus-theme-openapi-docs/package.json @@ -33,18 +33,18 @@ "@types/file-saver": "^2.0.5", "@types/lodash": "^4.14.176", "concurrently": "^5.2.0", - "eslint-plugin-prettier": "^5.0.1" - }, - "dependencies": { + "eslint-plugin-prettier": "^5.0.1", + "docusaurus-plugin-openapi-docs": "^4.2.0", "@docusaurus/theme-common": "^3.5.0", "@hookform/error-message": "^2.0.1", + "docusaurus-plugin-sass": "^0.2.3" + }, + "dependencies": { "@reduxjs/toolkit": "^1.7.1", "allof-merge": "^0.6.6", "clsx": "^1.1.1", "copy-text-to-clipboard": "^3.1.0", "crypto-js": "^4.1.1", - "docusaurus-plugin-openapi-docs": "^4.2.0", - "docusaurus-plugin-sass": "^0.2.3", "file-saver": "^2.0.5", "lodash": "^4.17.20", "node-polyfill-webpack-plugin": "^3.0.0", @@ -66,7 +66,11 @@ }, "peerDependencies": { "react": "^16.8.4 || ^17.0.0 || ^18.0.0", - "react-dom": "^16.8.4 || ^17.0.0 || ^18.0.0" + "react-dom": "^16.8.4 || ^17.0.0 || ^18.0.0", + "docusaurus-plugin-openapi-docs": "^4.0.0", + "@docusaurus/theme-common": "^3.5.0", + "@hookform/error-message": "^2.0.1", + "docusaurus-plugin-sass": "^0.2.3" }, "engines": { "node": ">=14"