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

feature request: support configuration via config file #510

Open
simonhaenisch opened this issue Jul 11, 2024 · 1 comment
Open

feature request: support configuration via config file #510

simonhaenisch opened this issue Jul 11, 2024 · 1 comment

Comments

@simonhaenisch
Copy link

Basically to support a ~/.corepackrc file that allows the same config as the COREPACK_ environment variables.

Could be exactly like ~/.npmrc with equivalent npm_config_ env vars, or a yarn-like ~/.corepackrc.yml would also work (I don't care about the format really).

We have a use case for this for automatic machine setup, where adding a config dot-file to the user's home folder is a lot more elegant than modifying their shell's rc file to export extra variables (I generally dislike the idea of automatically modifying user config files).

@szimek
Copy link

szimek commented Oct 10, 2024

Any chance of this happening?

We're currently running into an issue where some of our git hook scripts are non-interactive and when Yarn version is upgraded, even though we have the Yarn release .cjs file in the repo, corepack doesn't have it in its own cache and tries to download it. We could disable the prompt using an environment variable, but it's not that straightforward to set it up for everyone locally.

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

No branches or pull requests

2 participants