-
Notifications
You must be signed in to change notification settings - Fork 76
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
Extending custom path support #487
Extending custom path support #487
Conversation
Issue related |
This is great (and pretty clean as well). A few questions:
Thanks for this PR! |
Thank you for your review. Answering your questions:
|
@dannegm okay, i'll flag this as a "BREAKING CHANGE". I use an automatic release system, so would you mind adding a bit to the README about how the path works? We can probably add a note to the path definition, as well as explicitly mentioning the overriding opportunities on both the defaults and safe props? |
@mrsteele I have already added the complementary documentation. Let me know if anything else needs to be done :) |
This looks great; and adding a section was a nice touch. 👍 One last note: do you think we should clarify defaults and safe props as well? I read it a few times and can’t decide if it’s clear the string argument overrides the full path to the file and doesn’t just append. Gimme your thoughts. |
I think that the examples that I have provided are just enough to understand the final behavior. Within the pieces of code, it is specified what the result will be for both cases. Also, while describing, it is specified that this affects both the path and the filename but yes, it would be nice to specify that only the Let me make a couple of corrections to see how it works better. |
I just extended this note:
What are you thinking about it? |
@dannegm I just tried to fix provide a write-up and it was getting messy. Lets just leave those alone and go with what we got. Stand by. |
🎉 This PR is included in version 8.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thank you so much for your support! |
Thank you @dannegm for the contributions! Good luck out there! |
DESCRIPTION
Implementing this plugin within a monorepo architecture where the
.env
file needed to be shared across different sub-packages, I ran into the situation that the plugin did not behave as expected when using a specific path using thesafe mode
, and the file defaults.SOLUTION
Added fix to use path from settings in
getDefaults()
andgetEnvs()
functions. Also fixed a false positive test related to safe mode. All tests must pass successfully without decreasing the current coverage of the repository.