Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(v2): load plugin commands async to fix broken plugin CLI commands docs:version #3869

Merged
merged 2 commits into from
Dec 3, 2020

Conversation

aeneasr
Copy link
Contributor

@aeneasr aeneasr commented Dec 3, 2020

https://github.com/facebook/docusaurus/blame/master/packages/docusaurus/src/commands/external.ts#L12 changed the exported method to an async function, but the CLI loader was not updated to also run async, breaking things such as npm run docusaurus docs:version <version>.

Motivation

(Write your motivation here.)

Have you read the Contributing Guidelines on pull requests?

(Write your answer here.)

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

https://github.com/facebook/docusaurus/blame/master/packages/docusaurus/src/commands/external.ts#L12 changed the exported method to an async function, but the CLI loader was not updated to also run async, breaking things such as `npm run docusaurus docs:version <version>`.
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Dec 3, 2020
@aeneasr
Copy link
Contributor Author

aeneasr commented Dec 3, 2020

/cc @slorber for review since you touched this last :)

@github-actions
Copy link

github-actions bot commented Dec 3, 2020

Size Change: +18 B (0%)

Total Size: 157 kB

ℹ️ View Unchanged
Filename Size Change
website/build/blog/2017/12/14/introducing-docusaurus/index.html 20.7 kB -2 B (0%)
website/build/docs/introduction/index.html 180 B 0 B
website/build/index.html 5.84 kB 0 B
website/build/main.********.js 113 kB +20 B (0%)
website/build/styles.********.css 17.5 kB 0 B

compressed-size-action

@netlify
Copy link

netlify bot commented Dec 3, 2020

Deploy preview for docusaurus-2 ready!

Built without sensitive environment variables with commit 14890ae

https://deploy-preview-3869--docusaurus-2.netlify.app

@github-actions
Copy link

github-actions bot commented Dec 3, 2020

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 60
🟢 Accessibility 99
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-3869--docusaurus-2.netlify.app/classic/

@netlify
Copy link

netlify bot commented Dec 3, 2020

Deploy preview for docusaurus-2 ready!

Built without sensitive environment variables with commit 63e0150

https://deploy-preview-3869--docusaurus-2.netlify.app

@slorber
Copy link
Collaborator

slorber commented Dec 3, 2020

thanks, good catch :D

@slorber slorber merged commit 415a797 into facebook:master Dec 3, 2020
@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants