Skip to content

chore(renovate): group @wordpress/* updates and run npm dedupe#1895

Merged
PatelUtkarsh merged 1 commit into
developfrom
chore/renovate-wordpress-monorepo-group
May 29, 2026
Merged

chore(renovate): group @wordpress/* updates and run npm dedupe#1895
PatelUtkarsh merged 1 commit into
developfrom
chore/renovate-wordpress-monorepo-group

Conversation

@PatelUtkarsh
Copy link
Copy Markdown
Member

@PatelUtkarsh PatelUtkarsh commented May 29, 2026

Refs #1891.

Renovate cannot regenerate package-lock.json when @wordpress/scripts crosses a React major because other @wordpress/* transitives stay pinned to the older React. Grouping the WordPress monorepo updates and running npm dedupe after the install lets the resolver pull compatible transitive versions in the same PR.

  • Add monorepo:wordpress preset to group all @wordpress/* direct deps into one PR
  • Add postUpdateOptions: ["npmDedupe"] so Renovate runs npm dedupe after each update

Checklist

  • Project documentation has been updated to reflect the changes in this pull request, if applicable.
  • I have tested the changes in the local development environment (see contributing.md).
  • I have added phpunit tests.

Release Changelog

  • Fix: Group WordPress monorepo updates and dedupe lockfile in Renovate to avoid resolver conflicts.

Release Checklist

  • This pull request is to the master branch.
  • Release version follows semantic versioning. Does it include breaking changes?
  • Update changelog in readme.txt.
  • Bump version in stream.php.
  • Bump Stable tag in readme.txt.
  • Bump version in classes/class-plugin.php.
  • Draft a release on GitHub.

Change [ ] to [x] to mark the items as done.

Adds the monorepo:wordpress preset so all @wordpress/* direct deps
(scripts, eslint-plugin, e2e-test-utils-playwright, etc.) bump in a
single PR. Combined with postUpdateOptions: [npmDedupe] this lets
Renovate produce a coherent lockfile when @wordpress/scripts requires
a newer transitive @wordpress/* on a new React major.

Motivated by PR #1891, where @wordpress/scripts@32.3.0 (React 19) was
bumped but @wordpress/babel-preset-default, @wordpress/element, and
@wordpress/theme stayed pinned on React 18 in the lockfile, causing a
persistent ERESOLVE peer-dep failure in CI.
@PatelUtkarsh PatelUtkarsh merged commit bc73ee1 into develop May 29, 2026
3 checks passed
@PatelUtkarsh PatelUtkarsh deleted the chore/renovate-wordpress-monorepo-group branch May 29, 2026 06:12
@PatelUtkarsh PatelUtkarsh mentioned this pull request May 29, 2026
1 task
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.

1 participant