From b486f0c7a638e9d71fe8b804f77b126e1c9b5fc3 Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 21 Oct 2022 13:40:34 +0800 Subject: [PATCH] test windows --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" },