Fix Upstream Master Rebase conflict
This commit is contained in:
1 parent
43a320cdf0
commit
62de196f5b
7 files changed
+4805
-4703
No files matched your search
@@ -1,3 +1,18 @@
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
|
||||
export const mergeDirectoryModules = dirpath =>
|
||||
fs
|
||||
.readdirSync(dirpath, 'utf8')
|
||||
.filter(filename => !/^[_|index.]/.test(filename))
|
||||
.reduce(
|
||||
(acc, filename) => ({
|
||||
...acc,
|
||||
...require(path.resolve(dirpath, filename)).default,
|
||||
}),
|
||||
{}
|
||||
)
|
||||
|
||||
export const capitalize = (string) => {
|
||||
return (string).charAt(0).toUpperCase() + (string).slice(1)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user