aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-24 19:19:31 +0800
committerFabio Berger <me@fabioberger.com>2018-07-24 19:19:31 +0800
commitd280311734a26aed731bae4bcba5b091054a99f8 (patch)
treed1ec4a40810bed9aa34da2c771df5edd75f61f61 /packages/monorepo-scripts
parent789762617fd58628c60486403ce0ff674fa29142 (diff)
downloaddexon-0x-contracts-d280311734a26aed731bae4bcba5b091054a99f8.tar
dexon-0x-contracts-d280311734a26aed731bae4bcba5b091054a99f8.tar.gz
dexon-0x-contracts-d280311734a26aed731bae4bcba5b091054a99f8.tar.bz2
dexon-0x-contracts-d280311734a26aed731bae4bcba5b091054a99f8.tar.lz
dexon-0x-contracts-d280311734a26aed731bae4bcba5b091054a99f8.tar.xz
dexon-0x-contracts-d280311734a26aed731bae4bcba5b091054a99f8.tar.zst
dexon-0x-contracts-d280311734a26aed731bae4bcba5b091054a99f8.zip
Use relative path to lerna executable
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r--packages/monorepo-scripts/src/publish.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index 66ecb912b..39af64a5a 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -7,7 +7,6 @@ import opn = require('opn');
import { exec as execAsync } from 'promisify-child-process';
import * as prompt from 'prompt';
import semver = require('semver');
-import semverDiff = require('semver-diff');
import semverSort = require('semver-sort');
import { constants } from './constants';
@@ -181,9 +180,10 @@ async function lernaPublishAsync(packageToNextVersion: { [name: string]: string
const packageVersionString = _.map(packageToNextVersion, (nextVersion: string, packageName: string) => {
return `${packageName}@${nextVersion}`;
}).join(',');
- const lernaPublishCmd = `lerna publish --cdVersions=${packageVersionString} --skip-git`;
+ const lernaPublishCmd = `${constants.lernaExecutable} publish --cdVersions=${packageVersionString} --skip-git`;
console.log('lernaPublishCmd', lernaPublishCmd);
- await execAsync(lernaPublishCmd, { cwd: constants.monorepoRootPath });
+ const { stdout, stderr } = await execAsync(lernaPublishCmd, { cwd: constants.monorepoRootPath });
+ console.log('stdout, stderr', stdout.toString(), stderr.toString());
}
function updateVersionNumberIfNeeded(currentVersion: string, proposedNextVersion: string): string {