Skip to content

doesn't require subdirectories #41

Description

@Janpot

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: '...'
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions