Why doesn t the nrwl n…
Why doesn’t the @nrwl/node:execute
target terminate after running a script? Is there something missing from this config?
"build-build-number": {
"builder": "@nrwl/node:build",
"options": {
"outputPath": "dist/apps/cre/cre-portal/scripts/build_number",
"main": "apps/cre/cre-portal/scripts/build_number.ts",
"tsConfig": "apps/cre/cre-portal/scripts/tsconfig.json"
}
},
"write-build-number": {
"builder": "@nrwl/node:execute",
"options": {
"buildTarget": "cre-portal:build-build-number",
"inspect": false,
"watch": false
}
}
Responses:
I don’t see a way to tell it “Hey! Not running a server!”
Just a wild thought: have you tried explicitly exiting? process.exit(0)
if I think about it further, you should probably not do that
<https://nodejs.org/api/process.html#process_process_exit_code>
“Calling process.exit()
will force the process to exit as quickly as possible even if there are still asynchronous operations pending that have not yet completed fully, including I/O operations to process.stdout
and process.stderr
.”
So nevermind :stuck_out_tongue: