sync-dotenv
sync-dotenv copied to clipboard
undefined not found
If no .env.example file is already created, the script just says undefined not found. I expected it to create the file automatically if it didn't already exist.
Hey @silverAndroid, thanks for your contribution. I want to keep the goal of this lib focused and that is to sync environmental variables and not create them. I understand your expectations, but for others, .env.example
may not be their default. See this
Another thing to consider is, where (path) should the generated/created sample file be placed? The obvious answer will be the project root folder, but then again, this may not be what users want.
In the case where they wanted the sample file to be created in a separate place, wouldn't they specify that as part of the --sample argument?
I agree @silverAndroid
I'll look into your request but for now, I'm not making any promises.