You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These files are specially useful in order to avoid to type same environment variables multiple times.
In some cases, it also can be helpful to track them with a version controller.
That being said, zx could support this behaviour because:
we may need these .env files in any folder
we do not want to add package.json and install additional packages
fetching data from remote or any other operation might need credentials that could be stored in these .env file
I think we should make this issue in a more generic way, not just loading dotenv file. I suggest doing it similar to the way docker did: load env variables from .config file.
For example: zx --env-file=/foo/bar/cred.config script.mjs
Expected Behavior
Support for dotenv files
Actual Behavior
Do not support dotenv files
Motivation
These files are specially useful in order to avoid to type same environment variables multiple times.
In some cases, it also can be helpful to track them with a version controller.
That being said,
zx
could support this behaviour because:.env
files in any folderpackage.json
and install additional packages.env
fileRelated
#327
The text was updated successfully, but these errors were encountered: