mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 03:39:41 -08:00
16 lines
437 B
JavaScript
16 lines
437 B
JavaScript
const path = require('path');
|
|
const glob = require('glob');
|
|
|
|
module.exports = function getProjects() {
|
|
return glob
|
|
.sync(path.join(process.cwd(), 'packages/*'))
|
|
.filter((item) => {
|
|
return !item.includes('artplayer-document');
|
|
})
|
|
.reduce((result, item) => {
|
|
const name = item.split(path.sep).pop();
|
|
result[name] = item;
|
|
return result;
|
|
}, {});
|
|
};
|