Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't require subdirectories #41

Closed
Janpot opened this issue Sep 12, 2016 · 1 comment
Closed

doesn't require subdirectories #41

Janpot opened this issue Sep 12, 2016 · 1 comment

Comments

@Janpot
Copy link

Janpot commented Sep 12, 2016

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

{
  bar: '...'
}

while the recurse options is not what I want because that would give me:

{
  bar: '...',
  baz: {
    index: '...',
    bar: '...'
  }
}
@yocontra
Copy link
Collaborator

yocontra commented Feb 7, 2018

closing, duplicate of #23

@yocontra yocontra closed this as completed Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants