Skip to content

Omit registry URLs from npm lockfile - #353

Open
Jamie Magee (JamieMagee) wants to merge 1 commit into
Azure:mainfrom
JamieMagee:fix/omit-lockfile-registry-resolved
Open

Omit registry URLs from npm lockfile#353
Jamie Magee (JamieMagee) wants to merge 1 commit into
Azure:mainfrom
JamieMagee:fix/omit-lockfile-registry-resolved

Conversation

@JamieMagee

Copy link
Copy Markdown
Member

Summary

  • Add omit-lockfile-registry-resolved=true to the project .npmrc.
  • Regenerate package-lock.json, removing 417 registry resolved fields, including the ms-feed URL.
  • Keep lockfileVersion: 3, dependency versions, dependency relationships, integrity values, and all other lockfile metadata unchanged.

Validation

  • npm --version: 11.19.0
  • npm config get omit-lockfile-registry-resolved: true
  • npm install --package-lock-only --ignore-scripts: completed twice; the second run left the lockfile hash unchanged.
  • npm ci --ignore-scripts: passed.
  • npm run build: passed on Node.js 22.23.2.
  • Targeted JSON tests: 8 passed.
  • npm test: fails with 16 request tracing failures. The same failures occur on the unmodified main baseline with this patch stashed.

Add a project npm setting that keeps registry tarball URLs out of package-lock.json. Regenerate the lockfile without changing its dependency graph or integrity data.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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