Skip to content

chore: Move to yarn 4 and workspaces#10321

Draft
ibgreen-openai wants to merge 3 commits into
masterfrom
ib/yarn-4-workspace
Draft

chore: Move to yarn 4 and workspaces#10321
ibgreen-openai wants to merge 3 commits into
masterfrom
ib/yarn-4-workspace

Conversation

@ibgreen-openai
Copy link
Copy Markdown
Collaborator

Summary

Migrates deck.gl to Yarn 4.15 workspaces with nodeLinker: node-modules, and installs all package-managed examples from the repo root.

image

Changes

  • Set root packageManager to yarn@4.15.0.
  • Added .yarnrc.yml with:
    • enableScripts: true
    • nodeLinker: node-modules
    • targeted Yarn peer-warning filters for known legacy/third-party peer noise.
  • Expanded root workspaces from modules/* to:
    • modules/*
    • examples/**
  • Converted internal deck.gl / @deck.gl/* example deps to workspace:*.
  • Added/fixed example workspace metadata and duplicate names.
  • Kept Lerna publish/build scope limited to modules/*.
  • Updated docs and example READMEs to use one root yarn install.
  • Regenerated yarn.lock with Yarn 4.15.
  • Updated stale internal @deck.gl/* peer ranges from ~9.3.0-alpha.1 to ~9.3.0-beta.2.

Verification

  • corepack yarn --version -> 4.15.0
  • corepack yarn install --mode=skip-build
  • corepack yarn install --immutable --mode=skip-build
  • corepack yarn workspaces list --json
    • 81 total workspaces
    • 64 examples
    • 16 modules
    • 0 duplicate names
  • corepack yarn test-fast
  • Representative example builds:
    • deckgl-example-react-basic
    • deckgl-example-pure-js-basic
    • deckgl-examples-scatterplot
    • deckgl-examples-gallery

Notes

Plain yarn install runs the existing root postinstall script (npx playwright install chromium). Lockfile verification used --mode=skip-build to avoid browser-install side effects during validation.

@ibgreen-openai ibgreen-openai changed the title chore Move to yarn 4 and workspaces chore: Move to yarn 4 and workspaces May 20, 2026
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 83.377% (+0.01%) from 83.366% — ib/yarn-4-workspace into master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants