This commit is contained in:
Harvey committed 2022-04-28 10:00:21 +08:00
1 parent 5001490210
commit c4b4d4e7a8
34 files changed
+123 -281

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
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;
}, {});