chore(docusaurus): migrate from npm to Yarn Classic and lock dependencies#67
Merged
Merged
Conversation
…cies - Dockerfile: bootstrap yarn@1.22.22 (node 26 ships no yarn/corepack), install via 'yarn install --frozen-lockfile' (skips when a cached node_modules exists), build/serve/start via yarn - commit yarn.lock for reproducible, integrity-verified installs - docker-compose.yml: add a 'lockgen' service to regenerate yarn.lock in a container (docker compose run --rm lockgen) - .gitignore/.dockerignore: stop excluding yarn.lock; keep package-lock.json ignored - package.json: add resolutions forcing uuid@11 (clears the uuid@8.3.2 deprecation) Validated on node:26-slim: dev + prod builds (3 locales, 0 errors), serve renders.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrate the Docusaurus site from npm to Yarn Classic (v1) and lock dependencies.
What
yarn@1.22.22(node 26 ships no yarn/corepack), install viayarn install --frozen-lockfile(skips when a cachednode_modulesis present), build/serve/start via yarn.--frozen-lockfilemeaningful and prevents floating-dependency drift.lockgenservice to regenerate the lockfile in a container (docker compose run --rm lockgen) — no host yarn or leftovernode_modules.yarn.lock; keeppackage-lock.jsonignored.resolutionsforcinguuid@11, clearing theuuid@8.3.2deprecation.Validation (node:26-slim)
yarn install --frozen-lockfilesucceeds, no errors, no deprecation warningsyarn build): all 3 locales (en/es/pt), 0 errorsserve: homepage + docs render real static content (200s), no runtime errorsdocker compose run --rm lockgenregeneratesyarn.lockcleanly (uuid -> 11.1.1)Follow-ups (separate)
onBrokenMarkdownLinksis deprecated for Docusaurus v4 (config migration).