fixed cancel

master
yutent 2023-01-05 17:16:55 +08:00
parent 6b8a852105
commit 48de9e590b
2 changed files with 6 additions and 1 deletions

View File

@ -91,6 +91,11 @@ function printHelp() {
console.log()
if (res.projectName === undefined) {
console.log('已取消操作~~')
process.exit(1)
}
if (res.projectName === '.') {
res.projectName = DEFAULT_NAME
}

View File

@ -2,7 +2,7 @@
"name": "create-five",
"description": "一个快速创建Five.js项目的小工具",
"type": "module",
"version": "1.0.2",
"version": "1.0.3",
"author": "yutent <yutent.io@gmail.com>",
"bin": {
"create-five": "index.js"