Skip to content

Commit a6205a8

Browse files
committed
fix(cli): 修正usb-ids路径中的命名错误
- 将路径中的usb-ids更正为usb.ids - 修复因路径错误导致无法找到dist/ui目录的问题 - 改善了启动web服务器时的路径检查逻辑
1 parent 67aefac commit a6205a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function checkUpdate(): void {
142142
async function startWebServer(port = 3000): Promise<void> {
143143
try {
144144
const root = process.cwd()
145-
let distDir = path.join(root, 'node_modules', 'usb-ids', 'dist', 'ui')
145+
let distDir = path.join(root, 'node_modules', 'usb.ids', 'dist', 'ui')
146146

147147
if (!fs.existsSync(distDir)) {
148148
logger.warn('node_modules/usb-ids/dist/ui directory does not exist, trying to use dist/ui instead')

0 commit comments

Comments
 (0)