Builder cannot resolve shared dependencies#145
Builder cannot resolve shared dependencies#145dusura wants to merge 2 commits intoFormidableLabs:masterfrom
Conversation
|
Thanks for the PR @dusura ! Can you give me a little more background here -- an example of a file layout that current builder can't handle would be a great accelerator for me to wrap my head around the problem we're solving here... |
|
Hi @ryan-roemer. Thanks for the interest. I created a small demo so you can understand the issue. |
|
Thanks for the repository! So everything works when I do: So you're saying that normally I should be able to not add that extra (Separately, we have a tool to do just that -- exec commands with extra |
|
Interesting! I would've ran into this eventually, as I'm looking to start using builder in a monorepo. Related issue: #150 |
Perhaps this is against the general philosophy of builder but it would be nice if builder could resolve "shared" dependencies by adding any local "node_modules" folders to its path.
For example, builder will not run commands in a monorepo that uses the lerna hoist feature because it doesn't know about the monorepo's base "node_modules".