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

fix for packageTransform option bug #32

Closed
wants to merge 1 commit into from

Conversation

dgbeck
Copy link
Contributor

@dgbeck dgbeck commented Apr 2, 2014

Hi James,

Been banging my head against the wall trying to track down an issue related to the packageFilter option. Looks like there is a bug in module deps to whereas at times it will not apply the package filter to parsed package jsons. Specifically, in the "walk" function, if lookupPkg needs to be called because pkg.__dirname is missing (line 129), the packageFilter is not applied to the parsed package json. However, it IS applied in the case that pkg.__dirname is present, as the pkg comes back from resolver already transformed. The PR fixes the issue so that the package filter is applied consistently across both cases.

@ghost
Copy link

ghost commented Apr 11, 2014

Published in 1.8.1. Thanks for the patch!

@ghost ghost closed this Apr 11, 2014
This pull request was closed.
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

Successfully merging this pull request may close these issues.

1 participant