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
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
bb4aa764bc
Коммит
421fe4b5f0
@@ -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);
|
||||
});
|
||||
|
||||
Ссылка в новой задаче
Block a user