Repository navigation
chore(deps): drop the bundled npm CLI from the release tooling - #493
Conversation
…older semantic-release 25 depends on @semantic-release/npm, which installs the npm CLI with its own bundled undici, ip-address and minimatch. Overrides cannot reach bundled dependencies, and no npm release ships patched copies yet. .releaserc.json lists its plugins explicitly and npm publishing is not one of them, so point the dependency at a local placeholder that throws if it is ever loaded. This drops npm and 172 other packages from the lockfile; nothing else changes version.
The placeholder resolves like any plugin, so the resolvability check would pass if someone added it back to .releaserc.json. Fail the check instead of the release.
PR SummaryLow Risk Overview
The lockfile shrinks accordingly: Reviewed by Cursor Bugbot for commit 1e8a911. Bugbot is set up for automated code reviews on this repo. Configure here. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
semantic-release 25 depends on
@semantic-release/npm, which installs the npm CLI with its own bundledundici6.29.0,ip-address10.7.2 andminimatch10.2.5. Overrides can't reach bundled dependencies, and no npm release (11.21.1 or 12.2.1) ships patched copies yet.This repo never publishes to npm, and
.releaserc.jsonlists its plugins explicitly without@semantic-release/npm, so the plugin never runs.package.jsonnow points it at a small local placeholder (eng/semantic-release-npm-disabled) that throws if it's ever loaded, andverify-release-config.mjsrejects it in the plugin list.Effect on the lockfile:
npmand 172 other packages drop out, nothing else changes version.Checked locally on Node 22 after a fresh
npm ci --ignore-scripts:npm audit: 38 findings (1 high, 37 moderate) before, 0 afternpm ls undici minimatch ip-address: onlyundici@7.30.1under@semantic-release/githubremains; nonpmpackage in the treenpx semantic-release --dry-run --no-ci: same plugins loaded, next version 1.4.0, release notes identical tomainnode eng/next-release-version.mjsandnode eng/verify-release-config.mjspassFixes #460