-
Notifications
You must be signed in to change notification settings - Fork 98
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
Have workspace Resolution functionality along with Node Module Resolution for dependency resolution #2457
Comments
Hi @knarwani, Just to make sure I understood you correctly, are you seeing align-deps fail because you want to use presets that are part of the monorepo? Like we do here: rnx-kit/packages/test-app/package.json Lines 173 to 177 in cb1712e
If that's the case, then yes, that would be the place to add that. Would you be willing to work on this? We can also do it, but I can't promise any dates. |
Yes, I would like to work on this actively. I will create PR once I find the correct solution for this. |
Hi there, I wanted to change this file where loadPreset function will change to
and will add this const in config.ts
I tried this solution in my local and is working fine. Can you have a look at this code and let me know if I can go ahead and create a PR for this change. Please let me know what your views on this are. Thanks. |
Hi @krishna8770, I'm not sure what rnx-kit/packages/align-deps/src/cli.ts Line 198 in dfbf5a4
We should be able to plumb this all the way to |
Yes, the expensiveness of the function was my concern also so, to address that I have exported this variable from config.ts file i.e., |
We should not use global states as we have no control over how this package may be used. Our best bet is to pipe through the |
I have made the subsequent changes. Can you please let me know how to create PR on this repo as I am not getting option to create new branch with either of my accounts (Microsoft or personal). |
Please follow this guide: https://docs.github.com/en/get-started/quickstart/contributing-to-projects |
Here is the PR for the change. I had to make a lot of changes even in the test files. Can you please review this once (There are few pipeline check issues, please ignore them for now I am working on them)? |
What I need?
Can we please have the workspace resolution functionality as well along with node_module resolution of the dependencies?
Why I need?
I am using rnx-kit for aligning dependencies in my project. I am working on a monorepo and I wanted to use align-deps before installing any dependencies in my project (To run rnx-kit I have created a bundle of it and calling it). For that I need workspace resolution of few of my internal packages which are yet not available in node_modules. So, can we please have the workspace resolution functionality as well along with node_module resolution of the dependencies?
Where to change?
I think this is the place where my functionality can be added.
The text was updated successfully, but these errors were encountered: