Skip to content

Omit registry URLs from the npm lockfile - #781

Merged
Nikola Metulev (nmetulev) merged 1 commit into
microsoft:mainfrom
JamieMagee:fix/omit-lockfile-registry-resolved
Aug 25, 2026
Merged

Nikola Metulev (nmetulev) merged 1 commit into
microsoft:mainfrom
JamieMagee:fix/omit-lockfile-registry-resolved

Conversation

@JamieMagee

Copy link
Copy Markdown
Member

Description

Add omit-lockfile-registry-resolved=true to src/winapp-npm/.npmrc and regenerate the lockfile with npm 11.19.0. This removes 94 registry resolved fields, including the Azure Artifacts proxy URL.

Dependency versions, integrity hashes, lockfileVersion, and platform metadata are unchanged.

Usage Example

Not applicable. This change only affects npm lockfile metadata.

Related Issue

None.

Type of Change

  • 🔧 Config/build

Checklist

  • Tested locally on Windows

Screenshots / Demo

Not applicable.

Additional Notes

Validation completed in src/winapp-npm:

  • npx --yes npm@11.19.0 config get omit-lockfile-registry-resolved returned true.
  • A second npx --yes npm@11.19.0 install --package-lock-only --ignore-scripts --no-audit --no-fund --force made no changes.
  • Azure Artifacts feed URLs remaining in the lockfile: 0.
  • npx --yes npm@11.19.0 ci --ignore-scripts --no-audit --no-fund --force passed. --force is required on Linux because the package declares os: ["win32"].
  • npx --yes npm@11.19.0 run compile passed.
  • npx --yes npm@11.19.0 test ran 230 tests: 227 passed and 3 failed on Linux because they assert Windows path behavior.

The full scripts/build-cli.ps1 build was not run because this environment does not have pwsh or Windows.

npm config reference: https://docs.npmjs.com/cli/v8/using-npm/config#omit-lockfile-registry-resolved

AI Description

This section is auto-generated by AI when the PR is opened or updated. To opt out, delete this entire section including the marker comments.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 24, 2026 23:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes registry-specific URLs from the npm lockfile to improve portability.

Changes:

  • Enables omission of registry-resolved URLs.
  • Regenerates the lockfile without changing dependencies or integrity data.
Show a summary per file
File Description
src/winapp-npm/.npmrc Enables registry URL omission.
src/winapp-npm/package-lock.json Removes 94 resolved fields.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Files not reviewed (1)
  • src/winapp-npm/package-lock.json: Generated file
  • Files reviewed: 1/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

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.

3 participants