Disable npm install scripts#3946
Conversation
martincostello
commented
May 12, 2026
- Disable npm install scripts.
- Force the registry to be npm.
- Disable npm install scripts. - Force the registry to be npm.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3946 +/- ##
=======================================
Coverage 95.04% 95.04%
=======================================
Files 111 111
Lines 3958 3958
Branches 801 801
=======================================
Hits 3762 3762
Misses 196 196
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR aims to harden the repo’s Node dependency installation used to build the embedded SwaggerUI/ReDoc assets by (1) disabling npm lifecycle scripts and (2) forcing installs to use the public npm registry.
Changes:
- Add per-package npm configuration to force
registry=https://registry.npmjs.organd disable install scripts. - Update npm lockfiles to align resolved tarball URLs with
registry.npmjs.org.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/Swashbuckle.AspNetCore.SwaggerUI/.npmrc |
Adds npm config to force npm registry and disable lifecycle scripts (but filename appears to include an invisible Unicode character). |
src/Swashbuckle.AspNetCore.ReDoc/.npmrc |
Adds npm config to force npm registry and disable lifecycle scripts (but filename appears to include an invisible Unicode character). |
src/Swashbuckle.AspNetCore.SwaggerUI/package-lock.json |
Lockfile resolved URLs point at https://registry.npmjs.org/.... |
src/Swashbuckle.AspNetCore.ReDoc/package-lock.json |
Lockfile resolved URLs point at https://registry.npmjs.org/.... |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.