Update preflight fail process
This commit is contained in:
parent
50472dc67f
commit
c7096db568
@ -162,7 +162,16 @@ function preflightFn(preflight) {
|
||||
if (typeof preflight == "string") {
|
||||
execFileSync(preflight, options);
|
||||
} else if (typeof preflight == "object" && preflight?.[0]) {
|
||||
preflight.forEach((cmd) => execSync(cmd, options));
|
||||
preflight.forEach((cmd, index) => {
|
||||
try {
|
||||
execSync(cmd, options);
|
||||
} catch (error) {
|
||||
console.log(
|
||||
`${colors.FgRed}Error:${colors.Reset} Preflight command ${cmd} Failed! => ${error.message}`
|
||||
);
|
||||
process.exit();
|
||||
}
|
||||
});
|
||||
}
|
||||
return true;
|
||||
} catch (error) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nodecid",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "Simple CI/CD process",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
|
Loading…
Reference in New Issue
Block a user