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
Standardize a common configuration folder in the defaults #262
Comments
|
This should be a minor version bump in order to enable people to just run a deep upgrade in order to be able to place their config files in a subdirectory. |
|
Use of |
Yes, but sadly this seems to be actively ignored 😢 there could be so many tools at once to be decluttered if this was introduced in a patch/minor release! |
|
Repost from the PR to increase visibility for people who have been following this issue: I just published this PR as a fork! To use it as an end user, you need to use yarn resolutions or npm overrides. yarn "resolutions": {
"cosmiconfig": "npm:@d-fischer/cosmiconfig@7.1.0"
}npm "overrides": {
"cosmiconfig@7": "npm:@d-fischer/cosmiconfig@7.1.0"
}Then just move your config files to a Caveats
|
|
Just posted this note at the top of the README:
If you're interested in taking ownership of the package and moving this feature forward, let me know! |
|
@davidtheclark If nobody wants to take over ownership, you can maybe contact @openjs-foundation to ask if they want to take over the project. |
|
@davidtheclark seeing that there's a few people that now have requested access, but (whether or not they actually got access - didn't check) things are still not moving here (not just this issue in particular, but the whole repository), I would like to get access to maintain and publish this package. |
|
This now landed in version 7.1.0 which I just published - closing 🎉 |
As pointed out in #152 (comment):
To sum it up, I think it would be great to default to additionally searching in a predefined subdirectory (I think
.configseems like the most popular one).The benefit of this would be that you wouldn't have to clutter your package.json nor your root folder with tooling configuration, both of which seem to be annoying for many people. Rather than this being up to the library/tooling author that uses
cosmicconfig, this should be up to the end user using said library/tooling (see last quote), which is why (IMO) appealing to library/tooling authors to customizesearchPlacesis not the right approach.You'd still be able to do either of these two ways; this is really just adding another option by default.
Do note that this is not a duplicate of #152 since the XDG config spec is for user-global configuration while this aims to standardize a common per-project configuration folder.
I am open to create a PR for this.EDIT: I already created #263 :)The text was updated successfully, but these errors were encountered: