mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-08 13:52:36 +02:00
chore: fix yarn build:website:fast (#6421)
This commit is contained in:
parent
4e69c052d6
commit
aaf748c1ee
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@ function PackageJson() {
|
||||||
const allVersions = useVersions();
|
const allVersions = useVersions();
|
||||||
// Only happens in deploy preview / local dev, but still nice
|
// Only happens in deploy preview / local dev, but still nice
|
||||||
const versionName =
|
const versionName =
|
||||||
latestVersion.name === 'current' ? allVersions[1].name : latestVersion.name;
|
latestVersion.name === 'current' && allVersions.length > 1
|
||||||
|
? allVersions[1].name
|
||||||
|
: latestVersion.name;
|
||||||
return (
|
return (
|
||||||
<CodeBlock language="json" title="package.json">{`{
|
<CodeBlock language="json" title="package.json">{`{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue