From dd2217179ce701d6c6005dc342458ab1ccade216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20My=C5=9Bliwiec?= Date: Wed, 17 Feb 2021 08:56:55 +0100 Subject: [PATCH] fix(): inherit process exit code (start command) #1044 --- actions/start.action.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/actions/start.action.ts b/actions/start.action.ts index dc4fbf9b9..f3bae2990 100644 --- a/actions/start.action.ts +++ b/actions/start.action.ts @@ -112,7 +112,10 @@ export class StartAction extends BuildAction { outDirName, binaryToRun, ); - childProcessRef.on('exit', () => (childProcessRef = undefined)); + childProcessRef.on('exit', (code: number) => { + process.exitCode = code; + childProcessRef = undefined; + }); } }; }