-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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: pnpm @docusaurus/types hoist #9087
base: main
Are you sure you want to change the base?
Conversation
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
⚡️ Lighthouse report for the deploy preview of this PR
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been a while since I've been battling with this, but usually we got away with adding it to the init templates' package.json. Any reason not to do it here?
This problem only occurs when the package manager is |
Someone just reported here it actually fixes the problem, so are you sure? #9094 (comment) I'm not particularly knowledgeable of pnpm but that looks simpler to add the types as a dependency instead of configuring this setting 🤷♂️ will need to investigate |
|
Considering we reference it in the config file as jsdoc for both js/ts sites, I think we should do that. /** @returns {Promise<import('@docusaurus/types').Config>} */ Would a new TS site initialized with pnpm even pass typecheck without this? |
If you mean without |
Pre-flight checklist
Motivation
Fix #9080
Test Plan
no test required
Test links
Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/
Related issues/PRs
#9080