Skip to content

Commit 75bd225

Browse files
committed
fix(scully): make sure scully emits non-zero exit code on errors
1 parent 4d0231a commit 75bd225

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scully/scully.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ let _options = {};
5959
const folder = join(scullyConfig.homeFolder, scullyConfig.distFolder);
6060

6161
if (!existDistAngular(scullyConfig.homeFolder)) {
62-
process.exit(0);
62+
process.exit(5);
6363
}
6464

6565
await moveDistAngular(folder, scullyConfig.outFolder, {removeStaticDist: true, reset: false});
@@ -105,7 +105,7 @@ let _options = {};
105105

106106
if (!(await waitForServerToBeAvailable().catch(e => false))) {
107107
logError('Could not connect to server');
108-
process.exit(0);
108+
process.exit(5);
109109
}
110110
console.log('servers available');
111111
await startScully();
@@ -179,5 +179,5 @@ export async function isBuildThere(config: ScullyConfig) {
179179
return true;
180180
}
181181
logError(`Angular distribution files not found, run "ng build" first`);
182-
process.exit(0);
182+
process.exit(5);
183183
}

0 commit comments

Comments
 (0)