mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 03:46:16 -08:00
9 lines
240 B
JavaScript
9 lines
240 B
JavaScript
import path from 'path';
|
|
import glob from 'glob';
|
|
|
|
export default glob.sync(path.join(process.cwd(), 'packages/*')).reduce((result, item) => {
|
|
const name = item.split(path.sep).pop();
|
|
result[name] = item;
|
|
return result;
|
|
}, {});
|