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

Search symlink target directories for module when file is in a linked package #38

Open
nvenegas opened this issue Jan 11, 2016 · 0 comments

Comments

@nvenegas
Copy link
Collaborator

For a package foo that has a dependency on bar, when we npm link bar inside foo in npm 3+ (where nested dependencies are generally flattened into the "root" directory's node_modules, where "root" = foo's directory in this example), rather than searching inside bar/node_modules directory we should actually be searching inside foo/node_modules.

If bar's dependency isn't found inside foo/node_modules, then we should probably fall back to searching inside bar/node_modules.

And, of course, generalized for any symlinked parent structure.

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

1 participant