Skip to content

Omit registry URLs from the JavaScript npm lockfile - #2

Merged
Hou (SciencePotato) merged 1 commit into
Azure-Samples:mainfrom
JamieMagee:copilot/omit-lockfile-registry-resolved-agent-azure-mixed-2
Aug 27, 2026
Merged

Omit registry URLs from the JavaScript npm lockfile#2
Hou (SciencePotato) merged 1 commit into
Azure-Samples:mainfrom
JamieMagee:copilot/omit-lockfile-registry-resolved-agent-azure-mixed-2

Conversation

@JamieMagee

Copy link
Copy Markdown
Contributor

Summary

  • Add omit-lockfile-registry-resolved=true in javascript/.npmrc.
  • Regenerate javascript/package-lock.json with npm 10.9.4.
  • Remove 51 registry resolved entries, including the Azure Artifacts feed URL, without changing dependency versions or integrity hashes.
  • Align the lockfile's root package name with package.json: epp-otp-sample.

Validation

  • npx --yes npm@10.9.4 config get omit-lockfile-registry-resolved returned true.
  • A second npm install --package-lock-only --ignore-scripts --no-audit --no-fund produced no lockfile changes.
  • npx --yes npm@10.9.4 ci --ignore-scripts --no-audit --no-fund
  • npx --yes npm@10.9.4 test passed all 37 tests.

Add the project npm setting and regenerate the lockfile so registry URLs are no longer recorded.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@SciencePotato
Hou (SciencePotato) merged commit dd6937d into Azure-Samples:main Aug 27, 2026
5 checks passed
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