by simonbw · 2y ago · 0 comments
https://nodejs.org/api/process.html#processexitcode
See also `process.on('exit', ...)`; you can conditionally set process.exitCode in it (only if there was no other failure) if you want.