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