Skip to content

Commit 8410508

Browse files
beemanaaronfrost
authored andcommitted
fix(scully): make sure scully emits non-zero exit code on errors (#115)
1 parent b02baaa commit 8410508

2 files changed

Lines changed: 4 additions & 4 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(15);
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(15);
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(15);
183183
}

scully/utils/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const loadIt = async () => {
3232
distFolder = angularConfig.projects[defaultProject].architect.build.options.outputPath;
3333
} catch (e) {
3434
logError(`Angular config file could not be parsed!`, e);
35-
process.exit(0);
35+
process.exit(15);
3636
}
3737

3838
// TODO: update types in interfacesandenums to force correct types in here.

0 commit comments

Comments
 (0)