This commit is contained in:
Harvey committed 2022-04-28 10:37:12 +08:00
1 parent c4b4d4e7a8
commit 3fc4b99841
15 files changed
+39 -7438

No files matched your search

+8 -5
View File
@@ -1,8 +1,11 @@
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;
}, {});
export default glob
.sync(path.join(process.cwd(), 'packages/*'))
.filter((item) => !item.endsWith('artplayer-document'))
.reduce((result, item) => {
const name = item.split(path.sep).pop();
result[name] = item;
return result;
}, {});