修正路径
parent
9b97e8727e
commit
475bfa47a5
5
index.js
5
index.js
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import fs from 'iofs'
|
||||
import { resolve, join } from 'path'
|
||||
import { resolve, join, dirname } from 'path'
|
||||
import { writePackageJson, writeConfigFile, writeGitIgnore } from './lib/demo-config.js'
|
||||
import { writeHtmlFile } from './lib/demo-html.js'
|
||||
import { writeLogo } from './lib/logo.js'
|
||||
|
@ -20,7 +20,8 @@ import {
|
|||
writeStore
|
||||
} from './lib/demo-js.js'
|
||||
|
||||
const { version } = JSON.parse(fs.cat('./package.json'))
|
||||
const root = dirname(import.meta.url.slice(7))
|
||||
const { version } = JSON.parse(fs.cat(join(root, './package.json')))
|
||||
|
||||
let args = process.argv.slice(2)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@bytedo/vue-live-cli",
|
||||
"type": "module",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.7",
|
||||
"bin": {
|
||||
"vue-live-cli": "index.js"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue