From 9a748c8bf1dfd1a090e3d44a4cbebb59bcedd5e6 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Mon, 18 Jun 2018 17:58:17 +0200 Subject: small fixes --- packages/monorepo-scripts/src/prepublish_checks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/monorepo-scripts') diff --git a/packages/monorepo-scripts/src/prepublish_checks.ts b/packages/monorepo-scripts/src/prepublish_checks.ts index 17227d13f..0bd3bb0c1 100644 --- a/packages/monorepo-scripts/src/prepublish_checks.ts +++ b/packages/monorepo-scripts/src/prepublish_checks.ts @@ -18,7 +18,6 @@ async function prepublishChecksAsync(): Promise { await checkChangelogFormatAsync(updatedPublicLernaPackages); await checkGitTagsForNextVersionAndDeleteIfExistAsync(updatedPublicLernaPackages); await checkPublishRequiredSetupAsync(); - throw new Error('Intentional stop!'); } async function checkGitTagsForNextVersionAndDeleteIfExistAsync( @@ -87,6 +86,7 @@ async function checkCurrentVersionMatchesLatestPublishedNPMPackageAsync( } async function checkChangelogFormatAsync(updatedPublicLernaPackages: LernaPackage[]): Promise { + utils.log('Check CHANGELOGs for inconsistencies...'); const changeLogInconsistencies = []; for (const lernaPackage of updatedPublicLernaPackages) { const packageName = lernaPackage.package.name; @@ -120,8 +120,8 @@ async function checkChangelogFormatAsync(updatedPublicLernaPackages: LernaPackag } CHANGELOG.json`, ); }); + throw new Error('Fix the above inconsistencies to continue.'); } - throw new Error('Fix the above inconsistencies to continue.'); } async function checkPublishRequiredSetupAsync(): Promise { -- cgit v1.2.3