Skip to content

build: stop recording npm registry URLs in lockfiles - #1395

Merged
Jason Johnston (jasonjoh) merged 2 commits into
microsoftgraph:mainfrom
JamieMagee:fix/omit-lockfile-registry-resolved
Sep 14, 2026
Merged

Jason Johnston (jasonjoh) merged 2 commits into
microsoftgraph:mainfrom
JamieMagee:fix/omit-lockfile-registry-resolved

Conversation

@JamieMagee

Copy link
Copy Markdown
Contributor

Summary

  • Add omit-lockfile-registry-resolved=true in app-auth/graphapponlytutorial and user-auth/graphtutorial.
  • Remove registry resolved fields from both lockfiles.
  • Keep lockfile version 3 and all other dependency metadata unchanged.

Validation

  • npm config get omit-lockfile-registry-resolved returned true in both project roots.
  • A second remediation pass made no lockfile changes.
  • Both lockfiles no longer contain Azure Artifacts feed URLs.
  • npm ci completed in both project roots with Node.js 24.19.0 and npm 11.19.0.
  • npm run build and npm run lint passed in both tutorials after copying appSettings.example.ts to appSettings.ts, matching CI.

Add npm's omit-lockfile-registry-resolved setting to both tutorial projects and remove registry URLs without changing dependency metadata.

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved issues; installation, build, and lint validation passed.

Review tier: Lite
Findings: None

What changed in this PR

Configures both tutorials to omit npm registry URLs from lockfiles while preserving dependency metadata.

Changes:

  • Adds omit-lockfile-registry-resolved=true to both .npmrc files.
  • Removes registry resolved fields from both lockfiles.
  • Preserves lockfile version 3 and dependency integrity data.
File Summary
user-auth/​graphtutorial/​package-lock.json Removes registry URLs.
user-auth/​graphtutorial/​.npmrc Enables URL omission.
app-auth/​graphapponlytutorial/​package-lock.json Removes registry URLs.
app-auth/​graphapponlytutorial/​.npmrc Enables URL omission.
Files not reviewed (2)
  • app-auth/graphapponlytutorial/package-lock.json: Generated file
  • user-auth/graphtutorial/package-lock.json: Generated file

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

@jasonjoh
Jason Johnston (jasonjoh) merged commit f437efd into microsoftgraph:main Sep 14, 2026
7 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