diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-30 21:49:09 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-30 21:49:09 +0800 |
commit | 33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9 (patch) | |
tree | 9c7bda4219f027b60beaeee60c60d006b3b35970 /packages/monorepo-scripts | |
parent | 323826111ae8a3cc71a147faf05de5db2c195d1e (diff) | |
download | dexon-0x-contracts-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.tar dexon-0x-contracts-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.tar.gz dexon-0x-contracts-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.tar.bz2 dexon-0x-contracts-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.tar.lz dexon-0x-contracts-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.tar.xz dexon-0x-contracts-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.tar.zst dexon-0x-contracts-33ec9fdf47de4d8ab9d8ce43adedf4615dece4d9.zip |
Fixes for clarity
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r-- | packages/monorepo-scripts/src/publish.ts | 5 |
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) { |