From ebe9769f67d630b6287142858486273d850d86c6 Mon Sep 17 00:00:00 2001 From: Plumbiu <3434909403@qq.com> Date: Wed, 9 Aug 2023 16:15:35 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=8E=A8=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/cli/lib/utils/const.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/cli/lib/utils/const.ts b/packages/cli/lib/utils/const.ts index 8f964373..bbe6ddc9 100644 --- a/packages/cli/lib/utils/const.ts +++ b/packages/cli/lib/utils/const.ts @@ -6,7 +6,6 @@ import { Chalk } from 'chalk' const chalk = new Chalk({ level: 3 }) const __dirname = fileURLToPath(new URL('.', import.meta.url)) -const __root = resolve(__dirname, '..') // TODO: 根据项目根目录的 package.json 文件自动控制版本和描述 // 之前直接 import 会导致 dev 命令失效,暂时没有什么好办法 @@ -75,4 +74,4 @@ export function logBuildFinished(duration: number) { } export const distPath = resolve(__dirname, './') -export const devDistPath = resolve(__root, '../dist/') +export const devDistPath = resolve(__dirname, '../../dist/')