mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 02:21:20 -08:00
build all packages
This commit is contained in:
1 parent
592302975f
commit
9a6e3e0fb6
17 files changed
+49
-46
No files matched your search
@@ -2,10 +2,9 @@ const path = require('path');
|
||||
const glob = require('glob');
|
||||
|
||||
module.exports = function getProjects() {
|
||||
const projects = {};
|
||||
glob.sync(path.join(process.cwd(), 'packages/*')).forEach(item => {
|
||||
return glob.sync(path.join(process.cwd(), 'packages/*')).reduce((result, item) => {
|
||||
const name = item.split(path.sep).pop();
|
||||
projects[name] = item;
|
||||
});
|
||||
return projects;
|
||||
result[name] = item;
|
||||
return result;
|
||||
}, {});
|
||||
};
|
||||
Reference in new issue
Block a user