Skip to content

Commit 7458798

Browse files
committed
chore: update question
1 parent 315baa4 commit 7458798

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/vue-codemod.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ const {
6464
async function main() {
6565
// Remind user to back up files
6666
const answer = question(
67-
'Warning!!\n ' +
67+
'Warning!!\n' +
6868
'This tool may overwrite files.\n' +
69-
'Enter yes to continue:'
69+
'press enter or enter yes or enter Y to continue:'
7070
)
71-
if (answer.trim() !== 'yes') {
71+
if (!['', 'yes', 'Y'].includes(answer.trim())) {
7272
return
7373
}
7474

0 commit comments

Comments
 (0)