Awesome added it to the…
Awesome! added it to the production configuration for my node service and if I copy the dist folder to the project to another location i can run node app.js and it starts successfully.
"build": {
"builder": "@nrwl/node:build",
"options": {
"outputPath": "dist/apps/example-express-nodeservice",
"main": "apps/example-express-nodeservice/src/main.ts",
"tsConfig": "apps/example-express-nodeservice/tsconfig.app.json",
"assets": ["apps/example-express-nodeservice/src/assets"]
},
"configurations": {
"production": {
"optimization": true,
"extractLicenses": true,
"inspect": false,
"fileReplacements": [
{
"replace": "apps/example-express-nodeservice/src/environments/environment.ts",
"with": "apps/example-express-nodeservice/src/environments/environment.prod.ts"
}
],
"externalDependencies": "none"
}
}
},