-
Notifications
You must be signed in to change notification settings - Fork 18
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
Allow to search in node_modules of workspaces (yarn / lerna workspaces) #10
Comments
Right now, no, there isn't, but I'll definitely look into adding proper support for both lerna and yarn. |
@jasonnutter I also need this feature. I have a monorepo where the code for both the frontend and the backend repo is stored. Both the repos have I have thought of a solution. Currently, The e.g.
Now, When the user executes the command What do you think? I would be more than happy to raise a PR for this. :) |
@hardikmodha Great thinking! But can you think of reading this configuration from a more generalized place like the main |
@hardikmodha That's a potential approach, however, I prefer that the extension is able to support vscode/lerna/yarn workspaces without any need for manual configuration. I am starting work now to make that happen, will update here when that is complete. |
Cool. Let me know If I can help implement some part of the feature. I would be more than happy to contribute. :) |
@jasonnutter I do want this feature 💯 I can volunteer if you need some help 😉 |
Thanks for creating this package! I believe there's an easier way to handle this scenario - without any configuration. We just need to follow node's native module resolution protocol, starting from the location of the current file/tab, looking for So in the original example, if I'm in |
Check out my PR for solving this issue: #11 |
When using tools like
yarn
andlerna
, it's very common to have the below folder structures -We should have a config to allow search for child packages' node_modules. Is there a way to do that now that I'm not aware of ?
NOTE: for
yarn
workspaces we can read the root package.json to get workspace config, whilelerna
projects have a predefined structure.The text was updated successfully, but these errors were encountered: