-
Notifications
You must be signed in to change notification settings - Fork 66
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(nx-monorepo): resolve dependencies in node subprojects #434
Conversation
☁️ Nx Cloud ReportAttention: This version of the Nx Cloud GitHub bot will cease to function on July 1st, 2023. An organization admin can update your integration here. CI is running/has finished running commands for commit bb41150. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 2 targetsSent with 💌 from NxCloud. |
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
…ution Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
2c11d23
to
9c1e651
Compare
…ust assert non wildcard Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
9c1e651
to
7c3b50c
Compare
Good catch! Awesome PR :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Thanks for the fix! 😁
This is a follow-up to #379 and projen/projen#2641
The current logic in-place essentially skips resolution of sub-project dependencies entirely (as described by @mrgrain in projen/projen#2641 (comment)).
As a result of this, dependencies added to child projects will always be '*' unless manually pinned or edited with a scope.
Neither
projen upgrade
norprojen upgrade-deps
will update this for you as of now either (at least from '*' that is), so it requires manual intervention.In the aim of resolving this problem, this PR modifies the synth process to ensure subprojects will be resolved only after the workspace root has had a chance to install any changes.
This is based on @mrgrain 's mockup seen here: #379 (comment)