Skip to content

Commit

Permalink
fix: disable --yarn by default for publish/push
Browse files Browse the repository at this point in the history
The following PR removes the necessity for running yarn after a push:
  wclr#66
  • Loading branch information
aleclarson committed Jan 20, 2019
1 parent 6827aa9 commit d46b057
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/yalc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...]]')
Expand All @@ -53,7 +50,6 @@ yargs
builder: () => {
return yargs
.default('sig', true)
.default('yarn', isYarn())
.boolean(['push', 'push-safe'].concat(publishFlags))
},
handler: argv => {
Expand Down Expand Up @@ -101,7 +97,6 @@ yargs
return yargs
.default('force', undefined)
.default('sig', true)
.default('yarn', isYarn())
.boolean(['safe'].concat(publishFlags))
},
handler: argv => {
Expand Down

0 comments on commit d46b057

Please sign in to comment.