mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-11 13:56:15 -08:00
update
This commit is contained in:
1 parent
c4b4d4e7a8
commit
3fc4b99841
15 files changed
+39
-7438
No files matched your search
+8
-5
@@ -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;
|
||||
}, {});
|
||||
Reference in new issue
Block a user