Add more logging
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
"test:installation": "node ./packages/monorepo-scripts/lib/test_installation.js",
|
||||
"lerna:run": "lerna run",
|
||||
"lerna:rebuild": "lerna run clean; lerna run build;",
|
||||
"publish":
|
||||
"lerna:publish":
|
||||
"yarn install; yarn lerna:rebuild; node ./packages/monorepo-scripts/lib/publish.js"
|
||||
},
|
||||
"config": {
|
||||
|
@@ -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.`,
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@@ -10218,7 +10218,7 @@ semaphore@>=1.0.1, semaphore@^1.0.3:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/semaphore/-/semaphore-1.1.0.tgz#aaad8b86b20fe8e9b32b16dc2ee682a8cd26a8aa"
|
||||
|
||||
semver-diff@^2.0.0:
|
||||
semver-diff@^2.0.0, semver-diff@^2.1.0:
|
||||
version "2.1.0"
|
||||
resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36"
|
||||
dependencies:
|
||||
|
Reference in New Issue
Block a user