diff --git a/packages/create-app/index.js b/packages/create-app/index.js index e0548bec6b9949..dc9b752432958e 100755 --- a/packages/create-app/index.js +++ b/packages/create-app/index.js @@ -155,8 +155,11 @@ async function init() { name: 'yes', initial: 'Y', message: - `Target directory ${targetDir} is not empty.\n` + - `Remove existing files and continue?` + (targetDir === '.' + ? 'Current directory' + : `Target directory ${targetDir}`) + + ' is not empty.\n' + + 'Remove existing files and continue?' }) if (yes) { emptyDir(root)