Skip to content

Commit

Permalink
feat: add no commit and tag (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Aug 19, 2023
1 parent 884cf4c commit 312a214
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cli/parse-args.ts
Expand Up @@ -30,7 +30,9 @@ export async function parseArgs(): Promise<ParsedArgs> {
.option('--preid <preid>', 'ID for prerelease')
.option('--all', `Include all files (default: ${bumpConfigDefaults.all})`)
.option('-c, --commit [msg]', `Commit message (default: ${bumpConfigDefaults.commit})`)
.option('--no-commit', 'Skip commit')
.option('-t, --tag [tag]', `Tag name (default: ${bumpConfigDefaults.tag})`)
.option('--no-tag', 'Skip tag')
.option('-p, --push', `Push to remote (default: ${bumpConfigDefaults.push})`)
.option('-y, --yes', `Skip confirmation (default: ${!bumpConfigDefaults.confirm})`)
.option('-r, --recursive', `Bump package.json files recursively (default: ${bumpConfigDefaults.recursive})`)
Expand All @@ -50,8 +52,8 @@ export async function parseArgs(): Promise<ParsedArgs> {
quiet: args.quiet as boolean,
options: await loadBumpConfig({
preid: args.preid,
commit: args.commit,
tag: args.tag,
commit: !args.noCommit && args.commit,
tag: !args.noTag && args.tag,
push: args.push,
all: args.all,
confirm: !args.yes,
Expand Down

0 comments on commit 312a214

Please sign in to comment.