/package-env-example

Good and bad examples of using environment variables in package.json

Primary LanguageJavaScript

package-env-example

Good and bad examples of using environment variables in package.json

$ pnpm -s bad1
'NODE_ENV' is not recognized as an internal or external command,
operable program or batch file.
$ pnpm -s good1
{ NODE_ENV: 'production' }
$ pnpm -s good2
{ NODE_ENV: 'production' }
$ pnpm -s good3
{ NODE_ENV: 'production' }