Closed Janpot closed 6 years ago
currently I have the following situation:
/foo/bar.js /foo/baz/index.js /foo/baz/bar.js
what I'm expecting when I do
requireDir('./foo');
is
{ bar: '...', baz: '...' }
like it follows the semantics of require with respect to subfolders, but what I get is
require
{ bar: '...' }
while the recurse options is not what I want because that would give me:
recurse
{ bar: '...', baz: { index: '...', bar: '...' } }
closing, duplicate of https://github.com/aseemk/requireDir/pull/23
currently I have the following situation:
what I'm expecting when I do
is
like it follows the semantics of
require
with respect to subfolders, but what I get iswhile the
recurse
options is not what I want because that would give me: