diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-18 23:58:17 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-19 05:07:03 +0800 |
commit | 9a748c8bf1dfd1a090e3d44a4cbebb59bcedd5e6 (patch) | |
tree | d1d10e225f8a658eddb067c0c906d9d2d9445e36 /packages/monorepo-scripts | |
parent | 53eae14763b9c2b7ff26a832b5ea9d8b4511969e (diff) | |
download | dexon-sol-tools-9a748c8bf1dfd1a090e3d44a4cbebb59bcedd5e6.tar dexon-sol-tools-9a748c8bf1dfd1a090e3d44a4cbebb59bcedd5e6.tar.gz dexon-sol-tools-9a748c8bf1dfd1a090e3d44a4cbebb59bcedd5e6.tar.bz2 dexon-sol-tools-9a748c8bf1dfd1a090e3d44a4cbebb59bcedd5e6.tar.lz dexon-sol-tools-9a748c8bf1dfd1a090e3d44a4cbebb59bcedd5e6.tar.xz dexon-sol-tools-9a748c8bf1dfd1a090e3d44a4cbebb59bcedd5e6.tar.zst dexon-sol-tools-9a748c8bf1dfd1a090e3d44a4cbebb59bcedd5e6.zip |
small fixes
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r-- | packages/monorepo-scripts/src/prepublish_checks.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<void> { 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<void> { + 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<void> { |