mirror of
https://github.com/zhigang1992/react.git
synced 2026-03-26 06:55:07 +08:00
chore: upgrade deps
style(prettier): format code style
This commit is contained in:
@@ -6,7 +6,7 @@ module.exports = async () => {
|
||||
const files = await fs.readdir(componentsPath)
|
||||
|
||||
const components = await Promise.all(
|
||||
files.map(async (name) => {
|
||||
files.map(async name => {
|
||||
const comPath = path.join(componentsPath, name)
|
||||
const entry = path.join(comPath, 'index.ts')
|
||||
|
||||
@@ -21,7 +21,7 @@ module.exports = async () => {
|
||||
)
|
||||
|
||||
const componentsEntries = components
|
||||
.filter((r) => r)
|
||||
.filter(r => r)
|
||||
.reduce((pre, current) => {
|
||||
return Object.assign({}, pre, { [current.name]: current.url })
|
||||
}, {})
|
||||
|
||||
Reference in New Issue
Block a user