mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 21:47:01 +02:00
fix: declare missing dependencies (#6097)
* fix(utils-validation): add missing peer dependencies `react` and `react-dom` * fix(theme-classic): add missing peer dependency `@docusaurus/core` * ci: disable PnP fallbacks * ci: link to the docs * Update package.json Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
parent
5fb64041c0
commit
b48c6defae
3 changed files with 9 additions and 1 deletions
4
.github/workflows/tests-e2e.yml
vendored
4
.github/workflows/tests-e2e.yml
vendored
|
@ -78,6 +78,10 @@ jobs:
|
||||||
yarn config set unsafeHttpWhitelist --json '["localhost"]'
|
yarn config set unsafeHttpWhitelist --json '["localhost"]'
|
||||||
yarn config set enableGlobalCache true
|
yarn config set enableGlobalCache true
|
||||||
|
|
||||||
|
# Make PnP as strict as possible
|
||||||
|
# https://yarnpkg.com/features/pnp#fallback-mode
|
||||||
|
yarn config set pnpFallbackMode none
|
||||||
|
|
||||||
# Patch package so that peer deps are provided. This has been fixed in terser by making acorn a direct dependency
|
# Patch package so that peer deps are provided. This has been fixed in terser by making acorn a direct dependency
|
||||||
# TODO watch out for the next terser release. Commit: https://github.com/terser/terser/commit/05b23eeb682d732484ad51b19bf528258fd5dc2a
|
# TODO watch out for the next terser release. Commit: https://github.com/terser/terser/commit/05b23eeb682d732484ad51b19bf528258fd5dc2a
|
||||||
yarn config set packageExtensions --json '{"terser-webpack-plugin@*": {"dependencies": {"acorn": "^8.6.0"}}, "html-minifier-terser@*": {"dependencies": {"acorn": "^8.6.0"}}}'
|
yarn config set packageExtensions --json '{"terser-webpack-plugin@*": {"dependencies": {"acorn": "^8.6.0"}}, "html-minifier-terser@*": {"dependencies": {"acorn": "^8.6.0"}}}'
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
"update-code-translations": "node -e 'require(\"./update-code-translations.js\").run()'"
|
"update-code-translations": "node -e 'require(\"./update-code-translations.js\").run()'"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@docusaurus/core": "2.0.0-beta.13",
|
||||||
"@docusaurus/plugin-content-blog": "2.0.0-beta.13",
|
"@docusaurus/plugin-content-blog": "2.0.0-beta.13",
|
||||||
"@docusaurus/plugin-content-docs": "2.0.0-beta.13",
|
"@docusaurus/plugin-content-docs": "2.0.0-beta.13",
|
||||||
"@docusaurus/plugin-content-pages": "2.0.0-beta.13",
|
"@docusaurus/plugin-content-pages": "2.0.0-beta.13",
|
||||||
|
@ -45,7 +46,6 @@
|
||||||
"rtlcss": "^3.3.0"
|
"rtlcss": "^3.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/core": "2.0.0-beta.13",
|
|
||||||
"@docusaurus/module-type-aliases": "2.0.0-beta.13",
|
"@docusaurus/module-type-aliases": "2.0.0-beta.13",
|
||||||
"@docusaurus/types": "2.0.0-beta.13",
|
"@docusaurus/types": "2.0.0-beta.13",
|
||||||
"@types/mdx-js__react": "^1.5.4",
|
"@types/mdx-js__react": "^1.5.4",
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
"joi": "^17.4.2",
|
"joi": "^17.4.2",
|
||||||
"tslib": "^2.3.1"
|
"tslib": "^2.3.1"
|
||||||
},
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": "*",
|
||||||
|
"react-dom": "*"
|
||||||
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14"
|
"node": ">=14"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue