Fix async incorrect main #28

Closed
wants to merge 2 commits into
from

Projects

None yet

1 participant

@thlorenz
Contributor

sync resolve already found index.js if "main" field in package.json was incorrectly specified (same way that nodejs does).
This fix makes async resolve behave the same way.

If the white space changes are a problem let me know. -- my vim is set up to remove unnecessary white space on save (I forgot about that).

thlorenz added some commits Jul 30, 2013
@thlorenz thlorenz adding tests to reproduce the problem
- resolver test shows that async resolve fails when main field in package.json is incorrect
- resolver_sync test shows that sync resolve finds index.js under same circumstance
2c5a208
@thlorenz thlorenz async resolve now falls back to 'index.js' if main field in package.j…
…son is incorrect
4ada98d
@thlorenz thlorenz closed this Jul 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment