From b85899650ec69c25df10771ee5c80009baff1de2 Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 13 Jan 2023 11:42:24 +0800 Subject: [PATCH] fixed --- index.js | 7 +++++-- lib/demo-config.js | 6 +++--- package.json | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 2a82968..c59e428 100755 --- a/index.js +++ b/index.js @@ -28,7 +28,9 @@ import { } from './lib/demo-js.js' const CURRENT_DIR = process.cwd() -const root = dirname(import.meta.url.slice(process.platform === 'win32' ? 10 : 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' @@ -81,7 +83,8 @@ function printHelp() { { name: 'shouldOverwrite', type: _ => (isEmpty(targetDir) ? null : 'toggle'), - message: _ => `目录 ${cyan(targetDir)} 非空, 是否${red('删除')}目录下所有的文件?`, + message: _ => + `目录 ${cyan(targetDir)} 非空, 是否${red('删除')}目录下所有的文件?`, initial: false, active: '是', inactive: '否' diff --git a/lib/demo-config.js b/lib/demo-config.js index 304d0a0..30e09c5 100644 --- a/lib/demo-config.js +++ b/lib/demo-config.js @@ -16,11 +16,11 @@ export function writePackageJson(file, name) { start: 'vue-live dev', build: 'vue-live build' }, - dependencies: { - '@bytedo/vue-live': '^0.0.11' + devDependencies: { + '@bytedo/vue-live': '^0.0.15' } }, - ' ', + 'null, 2 ), file diff --git a/package.json b/package.json index 054c259..317efd8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "create-vue-live", "type": "module", - "version": "0.0.12", + "version": "0.0.15", "bin": { "create-vue-live": "index.js" },