mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
update scripts
This commit is contained in:
1 parent
4158136809
commit
c18739387a
4 files changed
+289
-289
No files matched your search
+3
-3
@@ -14,11 +14,11 @@ export function formatDate(date) {
|
||||
|
||||
export function getProjects() {
|
||||
return glob
|
||||
.sync(path.join(process.cwd(), 'packages/*'))
|
||||
.sync('packages/*')
|
||||
.filter((item) => !item.endsWith('artplayer-document') && !item.endsWith('artplayer-template'))
|
||||
.reduce((result, item) => {
|
||||
const name = item.split(path.sep).pop();
|
||||
result[name] = item;
|
||||
const name = item.split(/\/|\\/g).pop();
|
||||
result[name] = path.resolve(process.cwd(), item);
|
||||
return result;
|
||||
}, {});
|
||||
}
|
||||
Reference in new issue
Block a user