From 48de9e590bd9c058db56ce93c2dab828ac49e5c5 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 5 Jan 2023 17:16:55 +0800 Subject: [PATCH] fixed cancel --- index.js | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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"