Revert to using execAsync
This commit is contained in:
parent
206fd0f78e
commit
2ae6a71ca3
@ -4,7 +4,7 @@ import * as promisify from 'es6-promisify';
|
|||||||
import * as _ from 'lodash';
|
import * as _ from 'lodash';
|
||||||
import * as moment from 'moment';
|
import * as moment from 'moment';
|
||||||
import opn = require('opn');
|
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 * as prompt from 'prompt';
|
||||||
import semver = require('semver');
|
import semver = require('semver');
|
||||||
import semverSort = require('semver-sort');
|
import semverSort = require('semver-sort');
|
||||||
@ -189,15 +189,7 @@ async function lernaPublishAsync(packageToNextVersion: { [name: string]: string
|
|||||||
lernaPublishCmd += ` --skip-git`;
|
lernaPublishCmd += ` --skip-git`;
|
||||||
}
|
}
|
||||||
utils.log('Lerna is publishing...');
|
utils.log('Lerna is publishing...');
|
||||||
const child = await spawnAsync(lernaPublishCmd, { cwd: constants.monorepoRootPath });
|
await execAsync(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);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateVersionNumberIfNeeded(currentVersion: string, proposedNextVersion: string): string {
|
function updateVersionNumberIfNeeded(currentVersion: string, proposedNextVersion: string): string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user