mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
12 lines
312 B
JavaScript
12 lines
312 B
JavaScript
const path = require('path');
|
|
const glob = require('glob');
|
|
|
|
module.exports = function getProjects() {
|
|
const projects = {};
|
|
glob.sync(path.join(process.cwd(), 'packages/*')).forEach(item => {
|
|
const name = item.split(path.sep).pop();
|
|
projects[name] = item;
|
|
});
|
|
return projects;
|
|
};
|