From d46b05759bf1d78b9906f81c65cd82ede25607ff Mon Sep 17 00:00:00 2001 From: aleclarson Date: Wed, 16 Jan 2019 09:47:45 -0500 Subject: [PATCH] fix: disable --yarn by default for publish/push The following PR removes the necessity for running yarn after a push: https://github.com/whitecolor/yalc/pull/66 --- src/yalc.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/yalc.ts b/src/yalc.ts index 35b9bc0..a63f5bd 100644 --- a/src/yalc.ts +++ b/src/yalc.ts @@ -24,9 +24,6 @@ const getVersionMessage = () => { return pkg.version } -const isYarn = (cwd: string = process.cwd()) => - getPackageManager(cwd) === 'yarn' - /* tslint:disable-next-line */ yargs .usage(cliCommand + ' [command] [options] [package1 [package2...]]') @@ -53,7 +50,6 @@ yargs builder: () => { return yargs .default('sig', true) - .default('yarn', isYarn()) .boolean(['push', 'push-safe'].concat(publishFlags)) }, handler: argv => { @@ -101,7 +97,6 @@ yargs return yargs .default('force', undefined) .default('sig', true) - .default('yarn', isYarn()) .boolean(['safe'].concat(publishFlags)) }, handler: argv => {