diff --git a/packages/docusaurus-utils-common/package.json b/packages/docusaurus-utils-common/package.json index f4e9d5bcebeb..50ea22d1d835 100644 --- a/packages/docusaurus-utils-common/package.json +++ b/packages/docusaurus-utils-common/package.json @@ -19,9 +19,16 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/types": "2.0.0-beta.21", "tslib": "^2.4.0" }, + "peerDependencies": { + "@docusaurus/types": "*" + }, + "peerDependenciesMeta": { + "@docusaurus/types": { + "optional": true + } + }, "engines": { "node": ">=16.14" } diff --git a/packages/docusaurus-utils/package.json b/packages/docusaurus-utils/package.json index 76a700c51c37..f4c1f954d68a 100644 --- a/packages/docusaurus-utils/package.json +++ b/packages/docusaurus-utils/package.json @@ -19,7 +19,6 @@ "license": "MIT", "dependencies": { "@docusaurus/logger": "2.0.0-beta.21", - "@docusaurus/types": "2.0.0-beta.21", "@svgr/webpack": "^6.2.1", "file-loader": "^6.2.0", "fs-extra": "^10.1.0", @@ -45,5 +44,13 @@ "@types/micromatch": "^4.0.2", "@types/react-dom": "^18.0.5", "dedent": "^0.7.0" + }, + "peerDependencies": { + "@docusaurus/types": "*" + }, + "peerDependenciesMeta": { + "@docusaurus/types": { + "optional": true + } } }