feat(env-utilities): add support for @skyra/env-utilities/setup #406
+27
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As you will know, dotenv has the option to execute its config function with the defaults, using the
dotenv/config
import.Therefore, I have added to ability to do the same with env-utilities.
Both Skyra and Sapphire projects use
src/.env
so it wouldn't be very useful there. However, it would be great to have it for those (myself included) who prefer the default of it being in the root folder.Note
The only thing I haven't done is update the readme to include such. The reason is that I'm not that great with documentation and feel I would ruin the flow of how it's read.
One of those that I came up with was:
But it doesn't seem to fit in with the rest of the readme. Any suggestions from either of you (Kyra, Favna) would be great!