aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-30 21:27:47 +0800
committerFabio Berger <me@fabioberger.com>2018-03-30 21:27:47 +0800
commit08a69ebd6e9c04326836ab2ee486d1f1abe7c566 (patch)
tree09b3b7f375b1878e83461e4ba46c2117ca30b5d0 /packages/monorepo-scripts
parentddb8e26becb3f8d5bd8426663dbdea2cf1bf484f (diff)
downloaddexon-sol-tools-08a69ebd6e9c04326836ab2ee486d1f1abe7c566.tar.gz
dexon-sol-tools-08a69ebd6e9c04326836ab2ee486d1f1abe7c566.tar.zst
dexon-sol-tools-08a69ebd6e9c04326836ab2ee486d1f1abe7c566.zip
Add more logging
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r--packages/monorepo-scripts/src/publish.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index a05cf6d04..8093cb66c 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -93,6 +93,11 @@ const semverNameToIndex: { [semver: string]: number } = {
utils.log(`Pushed CHANGELOG updates to Github`);
}
+ utils.log('Version updates to apply:');
+ _.each(packageToVersionChange, (versionChange: string, packageName: string) => {
+ utils.log(`${packageName} -> ${versionChange}`);
+ });
+ utils.log(`Calling 'lerna publish'...`);
await lernaPublishAsync(packageToVersionChange);
})().catch(err => {
utils.log(err);
@@ -121,6 +126,10 @@ async function lernaPublishAsync(packageToVersionChange: { [name: string]: strin
const isFinalPrompt = _.includes(output, 'Are you sure you want to publish the above changes?');
if (isFinalPrompt && !IS_DRY_RUN) {
child.stdin.write(`y\n`);
+ } else if (isFinalPrompt && IS_DRY_RUN) {
+ utils.log(
+ `Submitted all versions to Lerna but since this is a dry run, did not confirm. You need to CTRL-C to exit.`,
+ );
}
});
}