diff --git a/package-lock.json b/package-lock.json index b3bbd3b..74de0d7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,7 @@ "requires": true, "packages": { "": { + "name": "create-node-cli", "version": "1.6.1", "dependencies": { "await-to-js": "^3.0.0", diff --git a/utils/ask.js b/utils/ask.js index c6ad933..4f80fbd 100644 --- a/utils/ask.js +++ b/utils/ask.js @@ -38,7 +38,7 @@ module.exports = async ({ name, message, hint, initial }) => { if (fs.existsSync(value)) { return `Directory already exists: ./${value}`; } else { - return true; + return !value ? `Please add a value.` : true; } } return !value ? `Please add a value.` : true;