Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

run-with-node-env

magiclen482MIT2.0.1

Set the NODE_ENV variable on all platforms. Without cross-spawn, very slim.

with-node-env, cross-env, NODE_ENV

readme

run-with-node-env

CI

Set the NODE_ENV variable on all platforms. Without cross-spawn, very slim.

Usage

run-with-node-env production npm start          # NODE_ENV=production  npm start
run-with-node-env development npm run start:dev # NODE_ENV=development npm run start:dev

License

MIT