test windows

master
yutent 2022-10-21 13:40:34 +08:00
parent b065e24abe
commit b486f0c7a6
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ import {
} from './lib/demo-js.js'
const CURRENT_DIR = process.cwd()
const root = dirname(import.meta.url.slice(7))
const root = dirname(import.meta.url.slice(process.platform === 'win32' ? 10 : 7))
const { version } = JSON.parse(fs.cat(join(root, './package.json')))
const DEFAULT_NAME = 'vue-live-app'

View File

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