File tree Expand file tree Collapse file tree 3 files changed +573
-641
lines changed
src/commands/commit/withClient Expand file tree Collapse file tree 3 files changed +573
-641
lines changed Original file line number Diff line number Diff line change 4949 "dependencies" : {
5050 "chalk" : " ^5.4.1" ,
5151 "conf" : " 13.1.0" ,
52- "execa" : " ^8.0.1 " ,
52+ "execa" : " ^9.5.3 " ,
5353 "fuse.js" : " 7.1.0" ,
5454 "inquirer" : " ~9.3.7" ,
5555 "inquirer-autocomplete-prompt" : " ^3.0.1" ,
Original file line number Diff line number Diff line change 1- import { execa } from 'execa'
1+ import { execa , ExecaError } from 'execa'
22import chalk from 'chalk'
33
44import isHookCreated from '@utils/isHookCreated.js'
@@ -8,7 +8,7 @@ import { type Answers } from '../prompts.js'
88const withClient = async ( answers : Answers ) : Promise < void > => {
99 try {
1010 const scope = answers . scope ? `(${ answers . scope } ): ` : ''
11- const title = `" ${ answers . gitmoji } ${ scope } ${ answers . title } " `
11+ const title = `${ answers . gitmoji } ${ scope } ${ answers . title } `
1212 const isAutoAddEnabled = configurationVault . getAutoAdd ( )
1313
1414 if ( await isHookCreated ( ) ) {
@@ -30,7 +30,7 @@ const withClient = async (answers: Answers): Promise<void> => {
3030 'commit' ,
3131 isAutoAddEnabled ? '-am' : '-m' ,
3232 title ,
33- ...( answers . message ? [ '-m' , `" ${ answers . message } " ` ] : [ ] )
33+ ...( answers . message ? [ '-m' , `${ answers . message } ` ] : [ ] )
3434 ] ,
3535 {
3636 shell : true ,
You can’t perform that action at this time.
0 commit comments