MM-54325 Have web app build script return error codes on failure (#24723)

* MM-54325 Have web app build script return error codes on failure

* Make web app --runner option not return an error code
Этот коммит содержится в:
Harrison Healey
2023-10-10 11:17:24 -04:00
коммит произвёл GitHub
родитель bb4aa764bc
Коммит 421fe4b5f0
4 изменённых файлов: 50 добавлений и 14 удалений

Просмотреть файл

@@ -25,7 +25,16 @@ async function watchAllWithDevServer() {
killOthers: 'failure',
},
);
await result;
let exitCode = 0;
try {
await result;
} catch (closeEvents) {
exitCode = getExitCode(closeEvents, 0);
}
return exitCode;
}
watchAllWithDevServer();
watchAllWithDevServer().then((exitCode) => {
process.exit(exitCode);
});