aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/publish.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-24 01:09:24 +0800
committerFabio Berger <me@fabioberger.com>2018-07-24 01:09:24 +0800
commitbddcebfbb1ca81199f273b6571ace0da14cf105a (patch)
tree2db7011329db645e89376eb5cbf67a4068773ec1 /packages/monorepo-scripts/src/publish.ts
parenta05b14e4d9659be1cc495ee33fd8962ce773f87f (diff)
downloaddexon-sol-tools-bddcebfbb1ca81199f273b6571ace0da14cf105a.tar
dexon-sol-tools-bddcebfbb1ca81199f273b6571ace0da14cf105a.tar.gz
dexon-sol-tools-bddcebfbb1ca81199f273b6571ace0da14cf105a.tar.bz2
dexon-sol-tools-bddcebfbb1ca81199f273b6571ace0da14cf105a.tar.lz
dexon-sol-tools-bddcebfbb1ca81199f273b6571ace0da14cf105a.tar.xz
dexon-sol-tools-bddcebfbb1ca81199f273b6571ace0da14cf105a.tar.zst
dexon-sol-tools-bddcebfbb1ca81199f273b6571ace0da14cf105a.zip
Allow registry to be configured in lerna.json
Diffstat (limited to 'packages/monorepo-scripts/src/publish.ts')
-rw-r--r--packages/monorepo-scripts/src/publish.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index c44e1f85e..53492e012 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -172,8 +172,7 @@ async function updateChangeLogsAsync(updatedPublicPackages: Package[]): Promise<
async function lernaPublishAsync(packageToVersionChange: { [name: string]: string }): Promise<void> {
// HACK: Lerna publish does not provide a way to specify multiple package versions via
// flags so instead we need to interact with their interactive prompt interface.
- const PACKAGE_REGISTRY = 'https://registry.npmjs.org/';
- const child = spawn('lerna', ['publish', `--registry=${PACKAGE_REGISTRY}`], {
+ const child = spawn('lerna', ['publish'], {
cwd: constants.monorepoRootPath,
});
let shouldPrintOutput = false;