-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Save config under each app's own namespace #27
Comments
It's intentional. By having it under the
Proof please. Very few tools even use
Never heard of anyone migrating to
From experience, most users don't even know about |
That makes sense: that's a strong benefit for Are you open to compromising and providing a constructor option to specify a config path? I really like |
Sure. PR welcome. Should be an options object in case of more options in the future. |
Fixed by #28. |
The current behaviour is to save some package
package-name
under~/.config/configstore/package-name
This means every app using configstore has its configuration file saved under the
configstore
namespace, rather than under that app's own namespace. This approach goes against the usual config convention (~/.config/package-name
). There are some drawbacks to going against this convention:configstore
becomes harder.Dropping the
configstore
prefix addresses these, though it also means introducing backwards incompatibility with existingconfigstore
users. Some ideas:configstore/package-name.json
andpackage-name/config.json
. This keeps compatibility, but makes logic more complicated. (What do you do if you find data in both locations?)The text was updated successfully, but these errors were encountered: