mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 11:56:15 -08:00
12 lines
326 B
JavaScript
12 lines
326 B
JavaScript
import path from 'path';
|
|
import glob from 'glob';
|
|
|
|
export default glob
|
|
.sync(path.join(process.cwd(), 'packages/*'))
|
|
.filter((item) => !item.endsWith('artplayer-document'))
|
|
.reduce((result, item) => {
|
|
const name = item.split(path.sep).pop();
|
|
result[name] = item;
|
|
return result;
|
|
}, {});
|