diff --git a/index.js b/index.js index 804ff53..d39ef20 100755 --- a/index.js +++ b/index.js @@ -91,6 +91,11 @@ function printHelp() { console.log() + if (res.projectName === undefined) { + console.log('已取消操作~~') + process.exit(1) + } + if (res.projectName === '.') { res.projectName = DEFAULT_NAME } diff --git a/package.json b/package.json index 622c170..6af6e25 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "create-five", "description": "一个快速创建Five.js项目的小工具", "type": "module", - "version": "1.0.2", + "version": "1.0.3", "author": "yutent ", "bin": { "create-five": "index.js"