小更新

master
yutent 2022-10-11 15:39:24 +08:00
parent ae960a2ff0
commit 8f9327f23c
4 changed files with 13 additions and 3 deletions

View File

@ -20,6 +20,8 @@ import {
writeStore writeStore
} from './lib/demo-js.js' } from './lib/demo-js.js'
const { version } = JSON.parse(fs.cat('./package.json'))
let args = process.argv.slice(2) let args = process.argv.slice(2)
function printHelp() { function printHelp() {
@ -63,6 +65,11 @@ switch (args[0]) {
} }
break break
case '-v':
case '--version':
console.log('v' + version)
break
default: default:
printHelp() printHelp()
break break

View File

@ -16,7 +16,7 @@ export function writePackageJson(file) {
build: 'vue-live build' build: 'vue-live build'
}, },
dependencies: { dependencies: {
'@bytedo/vue-live': '^0.0.4' '@bytedo/vue-live': '^0.0.5'
} }
}), }),
file file

View File

@ -61,7 +61,7 @@ import { reactive } from 'vue'
const store = reactive({ const store = reactive({
foo: 'bar', foo: 'bar',
version: '0.0.2' version: '0.0.5'
}) })
export default function (app) { export default function (app) {

View File

@ -1,11 +1,14 @@
{ {
"name": "@bytedo/vue-live-cli", "name": "@bytedo/vue-live-cli",
"type": "module", "type": "module",
"version": "0.0.2", "version": "0.0.3",
"bin": { "bin": {
"vue-live-cli": "index.js" "vue-live-cli": "index.js"
}, },
"dependencies": { "dependencies": {
"iofs": "^1.5.2" "iofs": "^1.5.2"
},
"engines": {
"node": ">=16.14.0"
} }
} }