aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-26 19:27:21 +0800
committerFabio Berger <me@fabioberger.com>2018-07-26 19:27:21 +0800
commit2ae6a71ca3ddeaa721b9484d9d0448fc9e9c2056 (patch)
treedaa59e71f3d1a6820e66f5fb157bc23220c4536b /packages/monorepo-scripts
parent206fd0f78e3e8b87b7b97f118b5839f287137eba (diff)
downloaddexon-0x-contracts-2ae6a71ca3ddeaa721b9484d9d0448fc9e9c2056.tar
dexon-0x-contracts-2ae6a71ca3ddeaa721b9484d9d0448fc9e9c2056.tar.gz
dexon-0x-contracts-2ae6a71ca3ddeaa721b9484d9d0448fc9e9c2056.tar.bz2
dexon-0x-contracts-2ae6a71ca3ddeaa721b9484d9d0448fc9e9c2056.tar.lz
dexon-0x-contracts-2ae6a71ca3ddeaa721b9484d9d0448fc9e9c2056.tar.xz
dexon-0x-contracts-2ae6a71ca3ddeaa721b9484d9d0448fc9e9c2056.tar.zst
dexon-0x-contracts-2ae6a71ca3ddeaa721b9484d9d0448fc9e9c2056.zip
Revert to using execAsync
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r--packages/monorepo-scripts/src/publish.ts12
1 files changed, 2 insertions, 10 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index 8f140fc5a..5992131db 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -4,7 +4,7 @@ import * as promisify from 'es6-promisify';
import * as _ from 'lodash';
import * as moment from 'moment';
import opn = require('opn');
-import { exec as execAsync, spawn as spawnAsync } from 'promisify-child-process';
+import { exec as execAsync } from 'promisify-child-process';
import * as prompt from 'prompt';
import semver = require('semver');
import semverSort = require('semver-sort');
@@ -189,15 +189,7 @@ async function lernaPublishAsync(packageToNextVersion: { [name: string]: string
lernaPublishCmd += ` --skip-git`;
}
utils.log('Lerna is publishing...');
- const child = await spawnAsync(lernaPublishCmd, { cwd: constants.monorepoRootPath });
- child.stdout.on('data', (data: Buffer) => {
- const output = data.toString('utf8');
- utils.log('Stdout: ', output);
- });
- child.stderr.on('data', (data: Buffer) => {
- const output = data.toString('utf8');
- utils.log('Stderr: ', output);
- });
+ await execAsync(lernaPublishCmd, { cwd: constants.monorepoRootPath });
}
function updateVersionNumberIfNeeded(currentVersion: string, proposedNextVersion: string): string {