Skip to content

Commit

Permalink
fix(scully): make sure scully emits non-zero exit code on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Dec 30, 2019
1 parent 4d0231a commit 069094d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scully/scully.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ let _options = {};
const folder = join(scullyConfig.homeFolder, scullyConfig.distFolder);

if (!existDistAngular(scullyConfig.homeFolder)) {
process.exit(0);
process.exit(15);
}

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

if (!(await waitForServerToBeAvailable().catch(e => false))) {
logError('Could not connect to server');
process.exit(0);
process.exit(15);
}
console.log('servers available');
await startScully();
Expand Down Expand Up @@ -179,5 +179,5 @@ export async function isBuildThere(config: ScullyConfig) {
return true;
}
logError(`Angular distribution files not found, run "ng build" first`);
process.exit(0);
process.exit(15);
}
2 changes: 1 addition & 1 deletion scully/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const loadIt = async () => {
distFolder = angularConfig.projects[defaultProject].architect.build.options.outputPath;
} catch (e) {
logError(`Angular config file could not be parsed!`, e);
process.exit(0);
process.exit(15);
}

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

0 comments on commit 069094d

Please sign in to comment.