Skip to content

chore(deps): ban nx packages from dependabot updates - #1225

Open
Martin Hochel (Hotell) wants to merge 1 commit into
microsoft:mainfrom
Hotell:chore/dependabot-ignore-nx
Open

chore(deps): ban nx packages from dependabot updates#1225
Martin Hochel (Hotell) wants to merge 1 commit into
microsoft:mainfrom
Hotell:chore/dependabot-ignore-nx

Conversation

@Hotell

Copy link
Copy Markdown
Collaborator

Why

Dependabot's grouped updates are working well, but the development-dependencies group keeps
sweeping Nx along with everything else — see #1223, which bundles nx, @nx/js and
@nx/eslint-plugin in with 19 unrelated bumps.

Nx can't be upgraded that way. yarn nx migrate is what keeps the nx runtime and every @nx/*
plugin version-locked to each other, and it's also what applies the config codemods
(nx.json, project.json, migrations.json). Dependabot only rewrites package.json and
yarn.lock, so it silently skips the codemods and can leave plugins desynced from the runtime.

Change

Adds an ignore rule for nx, @nx/* and @nrwl/* to the npm ecosystem in
.github/dependabot.yml.

Deliberately no update-types filter, unlike the existing major-version rule above it. That
makes the ban total — security updates included — because those need to go through nx migrate
just the same. @nrwl/* is listed pre-emptively; nothing in the repo depends on the legacy scope
today.

Ignore rules are evaluated before grouping, so these drop out of development-dependencies rather
than forming a group of their own.

Verification

Parsed the config with js-yaml to confirm it's valid and the rules land on the npm entry:

[
  { "dependency-name": "*", "update-types": ["version-update:semver-major"] },
  { "dependency-name": "nx" },
  { "dependency-name": "@nx/*" },
  { "dependency-name": "@nrwl/*" }
]

Follow-up

#1223 won't self-correct — it needs @dependabot recreate (or a close/reopen) once this lands so
the group is rebuilt without the Nx bumps.

@Hotell
Martin Hochel (Hotell) requested a review from a team as a code owner August 25, 2026 14:01
@github-actions

Copy link
Copy Markdown

📋 PR Validation Summary

Check the Build react library job summary for detailed reports:

  • 📦 Bundle Size — size comparison against the base branch

To view: click the link above → select the Build react library job → open the Summary tab.

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