Skip to content

Commit

Permalink
fix: don't override files by default
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Apr 17, 2023
1 parent 9dbcf41 commit d09eabe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export const PROMPT_TYPE = {

const PROMPT_SCHEMA = {
[PROMPT_TYPE.askOverwrite]: () => ({
name: 'value', message: 'File with that name already exist, do you want to overwrite?', type: 'confirm', initial: true,
name: 'value',
message: 'File with that name already exist, do you want to overwrite?',
type: 'confirm',
}),
[PROMPT_TYPE.askPassword]: () => ({ name: 'password', message: 'Enter your password', type: 'password' }),
[PROMPT_TYPE.confirm]: ({ message }) => ({ name: 'value', message, type: 'confirm' }),
Expand Down

0 comments on commit d09eabe

Please sign in to comment.