From ae937cfcce0e751bc931a8f05df0b67b62962023 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Thu, 23 Aug 2018 14:53:16 +0100 Subject: Add catch and exit with non-zero --- packages/monorepo-scripts/src/publish_release_notes.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/monorepo-scripts/src/publish_release_notes.ts b/packages/monorepo-scripts/src/publish_release_notes.ts index 1a0ec59e5..13cf0d85d 100644 --- a/packages/monorepo-scripts/src/publish_release_notes.ts +++ b/packages/monorepo-scripts/src/publish_release_notes.ts @@ -11,11 +11,13 @@ const args = yargs }) .example('$0 --isDryRun true', 'Full usage example').argv; -// tslint:disable-next-line:no-floating-promises (async () => { const isDryRun = args.isDryRun; const shouldIncludePrivate = false; const allUpdatedPackages = await utils.getUpdatedPackagesAsync(shouldIncludePrivate); await publishReleaseNotesAsync(allUpdatedPackages, isDryRun); -})(); +})().catch(err => { + utils.log(err); + process.exit(1); +}); -- cgit v1.2.3