aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-24 03:14:51 +0800
committerFabio Berger <me@fabioberger.com>2018-07-24 03:14:51 +0800
commitdf341717f78e8100802b110b1254181cc670ecc3 (patch)
tree1db28a1b0e98a42453a4a2b3aa7c9fbd3361bf69 /packages/monorepo-scripts
parent68974313e178bdee3c45b4556406960eaa26ce2a (diff)
downloaddexon-sol-tools-df341717f78e8100802b110b1254181cc670ecc3.tar
dexon-sol-tools-df341717f78e8100802b110b1254181cc670ecc3.tar.gz
dexon-sol-tools-df341717f78e8100802b110b1254181cc670ecc3.tar.bz2
dexon-sol-tools-df341717f78e8100802b110b1254181cc670ecc3.tar.lz
dexon-sol-tools-df341717f78e8100802b110b1254181cc670ecc3.tar.xz
dexon-sol-tools-df341717f78e8100802b110b1254181cc670ecc3.tar.zst
dexon-sol-tools-df341717f78e8100802b110b1254181cc670ecc3.zip
Remove regex
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r--packages/monorepo-scripts/src/publish.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index d1f9e4594..4d5425ac6 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -193,7 +193,7 @@ async function lernaPublishAsync(packageToNextVersion: { [name: string]: string
if (shouldPrintOutput) {
utils.log(output);
}
- const isVersionPrompt = /^\? Select a new version .* (currently .*)/.test(output);
+ const isVersionPrompt = _.includes(output, 'Select a new version');
if (isVersionPrompt) {
const outputStripLeft = output.split('new version for ')[1];
packageName = outputStripLeft.split(' ')[0];