aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-30 21:49:09 +0800
committerFabio Berger <me@fabioberger.com>2018-03-30 21:49:09 +0800
commit33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9 (patch)
tree9c7bda4219f027b60beaeee60c60d006b3b35970
parent323826111ae8a3cc71a147faf05de5db2c195d1e (diff)
downloaddexon-sol-tools-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.tar
dexon-sol-tools-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.tar.gz
dexon-sol-tools-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.tar.bz2
dexon-sol-tools-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.tar.lz
dexon-sol-tools-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.tar.xz
dexon-sol-tools-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.tar.zst
dexon-sol-tools-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.zip
Fixes for clarity
-rw-r--r--packages/monorepo-scripts/src/publish.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index 905fee196..e2c0edff8 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -105,7 +105,7 @@ const semverNameToIndex: { [semver: string]: number } = {
});
async function lernaPublishAsync(packageToVersionChange: { [name: string]: string }) {
- // HACK: Lerna publish does not provide a way to specify multiple package versions as
+ // HACK: Lerna publish does not provide a way to specify multiple package versions via
// flags so instead we need to interact with their interactive prompt interface.
const child = spawn('lerna', ['publish', '--registry=https://registry.npmjs.org/'], {
cwd: constants.monorepoRootPath,
@@ -121,7 +121,8 @@ async function lernaPublishAsync(packageToVersionChange: { [name: string]: strin
if (isPrivatePackage) {
versionChange = 'patch'; // Always patch updates to private packages.
}
- child.stdin.write(`${semverNameToIndex[versionChange]}\n`);
+ const semVerIndex = semverNameToIndex[versionChange];
+ child.stdin.write(`${semVerIndex}\n`);
}
const isFinalPrompt = _.includes(output, 'Are you sure you want to publish the above changes?');
if (isFinalPrompt && !IS_DRY_RUN) {