Omit registry URLs from the npm lockfile - #18
Merged
Vlad G (vladpm) merged 1 commit intoAug 28, 2026
Merged
Conversation
Add project-level npm configuration so future lockfile updates do not record registry-specific resolved URLs. Regenerate the lockfile with npm 10.9.4 without changing dependency versions or integrity hashes.
Contributor
|
Thanks Jamie Magee (@JamieMagee). Good catch. Confirmed change is limited to stripping registry-specific resolved URLs and project .npmrc keeps future lockfile updates registry-agnostic. Approving and applying the same omit-lockfile-reigstry-resolved setting on our other active branches so whole repo stays consistent. |
Vlad G (vladpm)
self-requested a review
August 28, 2026 08:45
Vlad G (vladpm)
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Added a project-level
.npmrcwithomit-lockfile-registry-resolved=trueand regeneratedpackage-lock.jsonwith npm 10.9.4.Why
The lockfile recorded Azure Artifacts proxy URLs in each registry dependency's
resolvedfield. Those URLs depend on the registry used when the lockfile is generated. The npm setting keeps future lockfile updates independent of that registry.Dependency versions, integrity hashes, and
lockfileVersionare unchanged. npm will resolve registry tarball URLs from the configured registry during installation.Validation
npx --yes npm@10.9.4 config get omit-lockfile-registry-resolvednpx --yes npm@10.9.4 install --package-lock-only --ignore-scriptsnpx --yes npm@10.9.4 ci --ignore-scriptsnpm run db:generateTZ=UTC npm test(101 tests passed)npm run lintThis change does not affect application behavior, security, privacy, accessibility, deployment, or cost. It does not add registry credentials or authentication settings.
npm config reference: https://docs.npmjs.com/cli/v8/using-npm/config#omit-lockfile-registry-resolved