Skip to content

Commit

Permalink
feat(create-app): better prompt message
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Apr 24, 2021
1 parent 5fe9a69 commit 6b7fa5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/create-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ async function init() {
name: 'yes',
initial: 'Y',
message:
`Target directory ${targetDir} is not empty.\n` +
(targetDir === '.'
? 'Current directory'
: `Target directory ${targetDir}`) +
` is not empty.\n` +
`Remove existing files and continue?`
})
if (yes) {
Expand Down

0 comments on commit 6b7fa5a

Please sign in to comment.