File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ module.exports = class Creator extends EventEmitter {
135
135
136
136
// intilaize git repository before installing deps
137
137
// so that vue-cli-service can setup git hooks.
138
- const shouldInitGit = await this . shouldInitGit ( cliOptions )
138
+ const shouldInitGit = this . shouldInitGit ( cliOptions )
139
139
if ( shouldInitGit ) {
140
140
logWithSpinner ( `🗃` , `Initializing git repository...` )
141
141
this . emit ( 'creation' , { event : 'git-init' } )
@@ -449,7 +449,7 @@ module.exports = class Creator extends EventEmitter {
449
449
return prompts
450
450
}
451
451
452
- async shouldInitGit ( cliOptions ) {
452
+ shouldInitGit ( cliOptions ) {
453
453
if ( ! hasGit ( ) ) {
454
454
return false
455
455
}
Original file line number Diff line number Diff line change @@ -13,10 +13,8 @@ module.exports = cli => {
13
13
if ( ! answers . useTsWithBabel ) {
14
14
return
15
15
}
16
- } else {
17
- if ( ! answers . features . includes ( 'babel' ) ) {
18
- return
19
- }
16
+ } else if ( ! answers . features . includes ( 'babel' ) ) {
17
+ return
20
18
}
21
19
options . plugins [ '@vue/cli-plugin-babel' ] = { }
22
20
} )
You can’t perform that action at this time.
0 commit comments