Linked Questions

Popular Questions

NPM packages in process.env

Asked by At

How are all these packages installed into process.env, and why don't I see NODE_ENV set in npm scripts?

"start": "NODE_ENV=dev npm run build && npm run watch && npm run tslint"

enter image description here

My npm scripts:

"scripts": {
    "start": "npm run build && npm run watch && npm run tslint",
    "build": "npm run build-ts",
    "serve": "nodemon dist/Server.js",
    "watch": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-ts\" \"npm run serve\"",
    "test": "mocha --compilers ts:ts-node/register",
    "build-ts": "tsc",
    "watch-ts": "tsc -w",
    "tslint": "tslint -c tslint.json -p tsconfig.json",
    "debug": "npm run build && npm run watch-debug",
    "serve-debug": "nodemon --inspect dist/Server.js",
    "watch-debug": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-ts\" \"npm run serve-debug\""
},

Related Questions