File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ export async function parseArgs(): Promise<ParsedArgs> {
30
30
. option ( '--preid <preid>' , 'ID for prerelease' )
31
31
. option ( '--all' , `Include all files (default: ${ bumpConfigDefaults . all } )` )
32
32
. option ( '-c, --commit [msg]' , `Commit message (default: ${ bumpConfigDefaults . commit } )` )
33
+ . option ( '--no-commit' , 'Skip commit' )
33
34
. option ( '-t, --tag [tag]' , `Tag name (default: ${ bumpConfigDefaults . tag } )` )
35
+ . option ( '--no-tag' , 'Skip tag' )
34
36
. option ( '-p, --push' , `Push to remote (default: ${ bumpConfigDefaults . push } )` )
35
37
. option ( '-y, --yes' , `Skip confirmation (default: ${ ! bumpConfigDefaults . confirm } )` )
36
38
. option ( '-r, --recursive' , `Bump package.json files recursively (default: ${ bumpConfigDefaults . recursive } )` )
@@ -50,8 +52,8 @@ export async function parseArgs(): Promise<ParsedArgs> {
50
52
quiet : args . quiet as boolean ,
51
53
options : await loadBumpConfig ( {
52
54
preid : args . preid ,
53
- commit : args . commit ,
54
- tag : args . tag ,
55
+ commit : ! args . noCommit && args . commit ,
56
+ tag : ! args . noTag && args . tag ,
55
57
push : args . push ,
56
58
all : args . all ,
57
59
confirm : ! args . yes ,
You can’t perform that action at this time.
0 commit comments