Repository navigation
feat(bundlechecker): Add custom npm registry support - #482
Merged
aversini merged 3 commits intoJan 31, 2026
Merged
Conversation
Add support for specifying a custom npm registry via a --registry/-r flag and plumbing it through the bundle check flow. Key changes: - CLI: add registry flag (short -r) with default and docs/examples in README. - Versions: fetchPackageVersions now accepts an options object (or legacy string), uses DEFAULT_REGISTRY, strips trailing slashes, and builds the registry URL when fetching package metadata. Tests added to verify registry usage and trailing-slash handling. - Bundler: expose registry in BundleOptions, pass registry to install command, and append a --registry argument to pnpm/npm install commands. - Bundlecheck/trend: propagate flags.registry into calls that fetch versions or check bundles. - Defaults: introduce DEFAULT_REGISTRY constant and registry default flag. This enables checking packages from private or alternative registries (e.g., Verdaccio or corporate registries) and ensures consistent behavior when registry URLs include a trailing slash.
aversini
deleted the
feat(bundlechecker)-Add-custom-npm-registry-support
branch
January 31, 2026 16:08
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for specifying a custom npm registry via a --registry/-r flag and plumbing it through the bundle check flow. Key changes:
This enables checking packages from private or alternative registries (e.g., Verdaccio or corporate registries) and ensures consistent behavior when registry URLs include a trailing slash.