Repository navigation
Conversation
|
Hi @haranishi! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Pre-flight checklist
Motivation
A plugin returning the documented
devServer: {open: '/docs'}configuration fails type checking when the consumer imports onlyPluginfrom@docusaurus/types. The same configuration works at runtime. Importingwebpack-dev-serverelsewhere happens to hide the problem because it augmentswebpack.Configuration.Load that augmentation from the public plugin declarations and declare the existing catalog dependency in
@docusaurus/types. No runtime implementation or dependency versions change.The regression test compiles an isolated TypeScript program, so imports in the monorepo cannot accidentally supply the missing augmentation. It checks returning and reading
devServer, retaining Webpack andmergeStrategyoptions, and rejectingopen: 42.Test Plan
Tested on macOS with Node.js 26.13.0 and pnpm 12.3.4, against upstream
c00f04e2376e057090d65d6bfb6a82d49ea3eca6.pnpm test __tests__/plugin-types.test.ts: passes. Before the declaration fix, the same test fails with missingdevServerproperties and an unused@ts-expect-errordirective.pnpm build:packages: passes (36 packages), after clearing generated incremental build information.pnpm typecheck:tests: passes.pnpm --filter website typecheck: passes.pnpm lint: passes, including ESLint, Stylelint, spelling, catalogs, deduplication, Knip and formatting. ESLint reports existing warnings and no errors.pnpm test: 3,223 passed and 6 failed (205 test files passed, 1 failed).Existing full-suite failures on the HFS+ checkout
All six failures are blog feed directory-tree snapshots in
packages/docusaurus-plugin-content-blog/src/__tests__/feed.test.ts: the filesystem returns the decomposed spelling ofhéllô, while the snapshots contain its composed spelling.Reverting the declaration fix and running
pnpm test packages/docusaurus-plugin-content-blog/src/__tests__/feed.test.tsreproduces the same six failures (16 other tests pass). The original declaration was restored for that check and the fix restored afterwards. No blog files or snapshots are changed in this patch. The directory-tree normalization is addressed separately in #12937.Test links
Deploy preview: https://deploy-preview-12935--docusaurus-2.netlify.app/.
The existing documented contract is Configuring dev server. This is a type-only fix; no UI changes.
Related issues/PRs
Fixes #9654.
AI assistance: this patch, regression test and draft description were prepared with Codex. Validation was run locally with Codex (AI-assisted); no independent human review is claimed.
Summary by CodeRabbit