GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
This is a fix for #22, in which a package has a dependency, and that dependency has a pkg.main property that points to a directory rather than a file.
This includes the same one-line fix as #24, and also includes a test case (which would fail without the fix).
See also: shtylman/node-browser-resolve#27
Failing test case for pkg.main pointing to a directory.
Fix for failing test case where pkg.main points to directory.
Thanks for the patch! Merged in 0.4.2.