优化退出

master
yutent 2023-01-05 17:19:55 +08:00
parent 48de9e590b
commit d4fe48f4c9
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ function printHelp() {
type: shouldOverwrite => {
if (shouldOverwrite === false) {
console.log(red('✖') + ' 操作取消~~')
process.exit(1)
process.exit()
}
return null
}
@ -93,7 +93,7 @@ function printHelp() {
if (res.projectName === undefined) {
console.log('已取消操作~~')
process.exit(1)
process.exit()
}
if (res.projectName === '.') {

View File

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