feat: Fix dropdown menu bug in dev.js and build.js

This commit is contained in:
Harvey Zack committed 2024-06-08 12:47:24 +08:00
1 parent 1192f18de6
commit 73bafc988a
10 files changed
+95 -91

No files matched your search

-1
View File
@@ -111,7 +111,6 @@ async function runBuild() {
choices: Object.keys(projects).map((name) => ({
title: name,
value: name,
description: projects[name],
})),
initial: 0,
});
-1
View File
@@ -85,7 +85,6 @@ async function develop(name) {
choices: Object.keys(projects).map((name) => ({
title: name,
value: name,
description: projects[name],
})),
initial: 0,
});
+1
View File
@@ -16,6 +16,7 @@ export function formatDate(date) {
export function getProjects() {
return glob
.sync('packages/*')
.sort()
.filter((item) => !item.endsWith('artplayer-template') && !item.endsWith('artplayer-vitepress'))
.reduce((result, item) => {
const name = item.split(/\/|\\/g).pop();