aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-24 03:23:09 +0800
committerFabio Berger <me@fabioberger.com>2018-07-24 03:23:09 +0800
commit1d9a77027eaf2ae9a21262305f75a274b0bd214a (patch)
tree9b6db20d36956d15050e6912ca4445212371c1d6 /packages/monorepo-scripts/src
parentb4cd8897b293e903ad5710d90d9904e1bc56c08e (diff)
downloaddexon-sol-tools-1d9a77027eaf2ae9a21262305f75a274b0bd214a.tar
dexon-sol-tools-1d9a77027eaf2ae9a21262305f75a274b0bd214a.tar.gz
dexon-sol-tools-1d9a77027eaf2ae9a21262305f75a274b0bd214a.tar.bz2
dexon-sol-tools-1d9a77027eaf2ae9a21262305f75a274b0bd214a.tar.lz
dexon-sol-tools-1d9a77027eaf2ae9a21262305f75a274b0bd214a.tar.xz
dexon-sol-tools-1d9a77027eaf2ae9a21262305f75a274b0bd214a.tar.zst
dexon-sol-tools-1d9a77027eaf2ae9a21262305f75a274b0bd214a.zip
Use include
Diffstat (limited to 'packages/monorepo-scripts/src')
-rw-r--r--packages/monorepo-scripts/src/publish.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index 4506595e1..df1bfff2f 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -203,9 +203,8 @@ async function lernaPublishAsync(packageToNextVersion: { [name: string]: string
packageName = packageNameFound;
sleepAndWrite(child.stdin, SemVerIndex.Custom);
}
- const isCustomVersionPrompt = output === '? Enter a custom version ';
+ const isCustomVersionPrompt = _.includes(output, 'Enter a custom version');
if (isCustomVersionPrompt) {
- console.log('custom version prompt hit!');
const versionChange = packageToNextVersion[packageName];
if (_.isUndefined(versionChange)) {
throw new Error(`Must have a nextVersion for each packageName. Didn't find one for ${packageName}`);
@@ -232,7 +231,6 @@ async function lernaPublishAsync(packageToNextVersion: { [name: string]: string
function sleepAndWrite(fileDescriptor: any, input: string | number): void {
const TIMEOUT = 1000;
setTimeout(() => {
- console.log('Printing to console:', input);
fileDescriptor.write(`${input}\n`);
}, TIMEOUT);
}