-
Notifications
You must be signed in to change notification settings - Fork 110
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
Refactor rc file loading / local registry support + add tests #337
base: master
Are you sure you want to change the base?
Conversation
|
||
class ConfigProvider: | ||
@property | ||
def _filename(self) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason for the filename to be a property and not a class variable? I can't imagine npm/yarn config file name ever changing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's mostly because then we could use actual abstractproperty handling in the future, but atm it does mean that forgetting to override it gives a clearer error at the call site.
85a4382
to
df302eb
Compare
- Use more "proper" package-manager-specific parsing, including what should be a fully-compliant (albiet over-engineered) parser for npm's ini format used in .npmrc. - Moves all config loading into its own set of classes. (As it turns out, this *does* walk recursively, contrary to what I said before, oops!) - Terminology change: rename rcfile -> config, just to match more with how npm describes itself. Signed-off-by: Ryan Gonzalez <[email protected]>
df302eb
to
0808f9d
Compare
Merge conflicts fixed. |
This adds a test-time dependency on a running Verdaccio instance. Signed-off-by: Ryan Gonzalez <[email protected]>
0808f9d
to
b4ade5a
Compare
This:
even though that's not really necessary) & yarn rc file parsers w/ tests. (As it turns out, I was wrong when I said .yarnrc is loaded up the directory tree, oops.)