mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-06 04:42:40 +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();
|
||||
// Only happens in deploy preview / local dev, but still nice
|
||||
const versionName =
|
||||
latestVersion.name === 'current' ? allVersions[1].name : latestVersion.name;
|
||||
latestVersion.name === 'current' && allVersions.length > 1
|
||||
? allVersions[1].name
|
||||
: latestVersion.name;
|
||||
return (
|
||||
<CodeBlock language="json" title="package.json">{`{
|
||||
"dependencies": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue