Just use the dotenv-cli NPM package. Add it to your workspace then prepend dotenv to any script and it will have access to your root env file at runtime.
Works cross-platform too and you don't have to maintain another script if you prefer a dependency over that.
Just use the dotenv-cli NPM package. Add it to your workspace then prepend
dotenvto any script and it will have access to your root env file at runtime.Works cross-platform too and you don't have to maintain another script if you prefer a dependency over that.
thank you for sharing!