Skip to content

fix: Let Renovate rebuild npm lockfiles under npm 12 - #38

Merged
yahyafakhroji merged 1 commit into
mainfrom
fix/renovate-npm12-lockfiles
Nov 6, 2026
Merged

yahyafakhroji merged 1 commit into
mainfrom
fix/renovate-npm12-lockfiles

Conversation

@yahyafakhroji

Copy link
Copy Markdown
Contributor

Problem
Renovate's npm lockfile step fails under npm 12, so grouped npm updates open with a stale package-lock.json. auth-ui #198 failed with EALLOWREMOTE when npm refused the @tailwindcss/oxide-wasm32-wasi tarball, and auth-ui #200 failed with EOVERRIDE on joi because Renovate left the old range in overrides. staff-portal #794 has the same out-of-sync lockfile.

Solution
The preset now sets npmrc: replace-registry-host=always, so npm fetches every tarball from the configured registry's host, which npm 12 allows by default. npmrcMerge: true adds that line to a repository's own .npmrc instead of replacing it, which keeps legacy-peer-deps in staff-portal and auto-install-peers in datum-ui. A new package rule bumps an npm overrides range together with its version.

auth-ui tried both settings first in datum-cloud/auth-ui#201. After it merged, Renovate rebuilt datum-cloud/auth-ui#200 with a valid lockfile and bumped every override range. Install and build passed there, and the strict validator passes on this branch.

Refs datum-cloud/auth-ui#201
Refs datum-cloud/staff-portal#794

Renovate's npm lockfile step failed on auth-ui and staff-portal: npm 12
refused a tarball from a host outside the configured registry
(EALLOWREMOTE) and rejected overrides whose range Renovate left behind
(EOVERRIDE). Rewrite tarball hosts to the configured registry, merged
into each repository's own .npmrc, and bump an override's range with
its version.
@yahyafakhroji
yahyafakhroji requested a review from a team as a code owner November 6, 2026 00:36
@yahyafakhroji yahyafakhroji self-assigned this Nov 6, 2026
@yahyafakhroji
yahyafakhroji merged commit c49e785 into main Nov 6, 2026
4 checks passed
@yahyafakhroji
yahyafakhroji deleted the fix/renovate-npm12-lockfiles branch November 6, 2026 02:12
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.

2 participants