fixed version
parent
0f26eef35f
commit
1ec117c030
4
index.js
4
index.js
|
@ -32,7 +32,7 @@ const CURRENT_DIR = process.cwd()
|
||||||
const root = dirname(
|
const root = dirname(
|
||||||
import.meta.url.slice(process.platform === 'win32' ? 10 : 7)
|
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'
|
const DEFAULT_NAME = 'vue-live-app'
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ function printHelp() {
|
||||||
switch (args[0]) {
|
switch (args[0]) {
|
||||||
case '-v':
|
case '-v':
|
||||||
case '--version':
|
case '--version':
|
||||||
console.log('v' + version)
|
console.log('v' + VERSION)
|
||||||
break
|
break
|
||||||
|
|
||||||
case '-h':
|
case '-h':
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "create-vue-live",
|
"name": "create-vue-live",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"bin": {
|
"bin": {
|
||||||
"create-vue-live": "index.js"
|
"create-vue-live": "index.js"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue