fixed version

master
yutent 2023-02-08 18:08:52 +08:00
parent 0f26eef35f
commit 1ec117c030
2 changed files with 3 additions and 3 deletions

View File

@ -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':

View File

@ -1,7 +1,7 @@
{
"name": "create-vue-live",
"type": "module",
"version": "1.0.0",
"version": "1.0.1",
"bin": {
"create-vue-live": "index.js"
},