diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-24 18:44:38 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-24 18:44:38 +0800 |
commit | 73d75bc4052f4d122924d9be2e2fae4bc2764a90 (patch) | |
tree | 4cc859a2fdede40ba5d309a19727f2a3d300a28f | |
parent | 91dcfd5ee88d704ed9d56ec16e58f18ca04aa42b (diff) | |
download | dexon-sol-tools-73d75bc4052f4d122924d9be2e2fae4bc2764a90.tar dexon-sol-tools-73d75bc4052f4d122924d9be2e2fae4bc2764a90.tar.gz dexon-sol-tools-73d75bc4052f4d122924d9be2e2fae4bc2764a90.tar.bz2 dexon-sol-tools-73d75bc4052f4d122924d9be2e2fae4bc2764a90.tar.lz dexon-sol-tools-73d75bc4052f4d122924d9be2e2fae4bc2764a90.tar.xz dexon-sol-tools-73d75bc4052f4d122924d9be2e2fae4bc2764a90.tar.zst dexon-sol-tools-73d75bc4052f4d122924d9be2e2fae4bc2764a90.zip |
Fix publish command
-rw-r--r-- | packages/monorepo-scripts/src/publish.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts index 7007b75e5..7d10c7d9e 100644 --- a/packages/monorepo-scripts/src/publish.ts +++ b/packages/monorepo-scripts/src/publish.ts @@ -4,14 +4,14 @@ import * as promisify from 'es6-promisify'; import * as _ from 'lodash'; import * as moment from 'moment'; import opn = require('opn'); -import { exec as execAsync, spawn } from 'promisify-child-process'; +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'; -import { Package, PackageToNextVersion, SemVerIndex, VersionChangelog } from './types'; +import { Package, PackageToNextVersion, VersionChangelog } from './types'; import { changelogUtils } from './utils/changelog_utils'; import { utils } from './utils/utils'; @@ -181,7 +181,9 @@ async function lernaPublishAsync(packageToNextVersion: { [name: string]: string const packageVersionString = _.map(packageToNextVersion, (nextVersion: string, packageName: string) => { return `${packageName}@${nextVersion}`; }).join(','); - await execAsync('lerna', `--cdVersions=${packageVersionString}`, '--skip-git'); + const lernaPublishCmd = `lerna --cdVersions=${packageVersionString} --skip-git`; + console.log('lernaPublishCmd', lernaPublishCmd); + await execAsync(lernaPublishCmd, { cwd: constants.monorepoRootPath }); } function updateVersionNumberIfNeeded(currentVersion: string, proposedNextVersion: string): string { |