Skip to content

Stop storing npm registry URLs in sample lockfiles - #1529

Merged
Alex Jerabek (AlexJerabek) merged 1 commit into
OfficeDev:mainfrom
JamieMagee:fix/omit-lockfile-registry-resolved
Aug 25, 2026
Merged

Stop storing npm registry URLs in sample lockfiles#1529
Alex Jerabek (AlexJerabek) merged 1 commit into
OfficeDev:mainfrom
JamieMagee:fix/omit-lockfile-registry-resolved

Conversation

@JamieMagee

Copy link
Copy Markdown
Contributor
Q A
Bug fix? no
New feature? no
New sample? no
Related issues? none

What's in this Pull Request?

Seven sample projects now set omit-lockfile-registry-resolved=true in project-level .npmrc files. Their lockfiles no longer record registry tarball URLs. Lockfile version 3 and all dependency, integrity, and platform metadata are unchanged.

Guidance

This PR targets the main branch.

Validation

I used npm 11.19.0 for all seven projects.

  • npm install --package-lock-only --ignore-scripts --no-audit --no-fund: passed, with a clean second regeneration in every project
  • npm ci --ignore-scripts --no-audit --no-fund --loglevel=error: passed in every project
  • npm config get omit-lockfile-registry-resolved: true in every project
  • Target feed URL count: 0
  • Registry resolved entry count: 0
  • Metadata comparison after excluding resolved: equal
  • node --check: 34 JavaScript files passed across the four JavaScript samples
  • XML parsing: both manifests passed in each Blazor sample
  • office-addin-manifest --help: passed in each Blazor sample

Remote manifest validation was attempted for the local and production manifests in all three Blazor samples. The validation service could not be reached:

Error: Unable to contact the manifest validation service.
FetchError: request to https://validationgateway.omex.office.net/package/api/check?clientId=devx failed, reason: connect ETIMEDOUT 6.6.0.180:443

- ✨ Added project-level npm settings to the seven affected samples.
- 🧹 Regenerated their lockfiles without registry resolved URLs or metadata changes.

-= Maarten =-

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@AlexJerabek

Copy link
Copy Markdown
Collaborator

Hi Jamie Magee (@JamieMagee),

There are a lot more lock files in this repo than those targeted here. Any reason it's just a subset?

@JamieMagee

Copy link
Copy Markdown
Contributor Author

Alex Jerabek (@AlexJerabek) these were the only ones that had Azure Artifacts feeds embedded in them.

@AlexJerabek
Alex Jerabek (AlexJerabek) merged commit ec41f16 into OfficeDev:main Aug 25, 2026
3 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.

3 participants