Skip to content

Commit

Permalink
style: 🎨 删除无用变量
Browse files Browse the repository at this point in the history
  • Loading branch information
Plumbiu committed Aug 9, 2023
1 parent 32a0ec5 commit ebe9769
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cli/lib/utils/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 命令失效,暂时没有什么好办法
Expand Down Expand Up @@ -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/')

0 comments on commit ebe9769

Please sign in to comment.