Can you explain how all these packages are installed in process.env
? Also, why is NODE_ENV
not visible when I run npm scripts?
"start": "NODE_ENV=dev npm run build && npm run watch && npm run tslint"
https://i.sstatic.net/OpahA.png
Here are 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\""
},