From 1ec117c0308d0a6f186abdc458adf49f9067397e Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 8 Feb 2023 18:08:52 +0800 Subject: [PATCH] fixed version --- index.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index de34dcb..d6fdd3c 100755 --- a/index.js +++ b/index.js @@ -32,7 +32,7 @@ const CURRENT_DIR = process.cwd() const root = dirname( import.meta.url.slice(process.platform === 'win32' ? 10 : 7) ) -const { version } = JSON.parse(fs.cat(join(root, './package.json'))) +const VERSION = '1.0.1' const DEFAULT_NAME = 'vue-live-app' @@ -80,7 +80,7 @@ function printHelp() { switch (args[0]) { case '-v': case '--version': - console.log('v' + version) + console.log('v' + VERSION) break case '-h': diff --git a/package.json b/package.json index 35ce6ec..a5fb08f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "create-vue-live", "type": "module", - "version": "1.0.0", + "version": "1.0.1", "bin": { "create-vue-live": "index.js" },