Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(npmrc): fix getting registry configuration for a scope #55

Merged
merged 2 commits into from
May 30, 2024

Conversation

bartlomieju
Copy link
Member

Previous when trying to get the registry configuration for @scope/name we were
iterating over discovered registry configurations by starting at <registry_url>/<scope>/<name>,
trying to get a match, then stripping parts at the end.

This is incorrect, as the configuration should be the exact match on the defined
registry URL for given scope without appending scope and package names.

@bartlomieju bartlomieju requested a review from dsherret May 30, 2024 22:38
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for looking into this

@bartlomieju bartlomieju merged commit 568f315 into main May 30, 2024
1 check passed
@bartlomieju bartlomieju deleted the fix_scope_discovery_npmrc branch May 30, 2024 22:54
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.

2 participants