diff --git a/index.js b/index.js index e16324f..2a82968 100755 --- a/index.js +++ b/index.js @@ -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' diff --git a/package.json b/package.json index c142d55..fbc1854 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "create-vue-live", "type": "module", - "version": "0.0.9", + "version": "0.0.10", "bin": { "create-vue-live": "index.js" },