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

fix(nx-monorepo): resolve dependencies in node subprojects #434

Merged
merged 8 commits into from
May 31, 2023

Conversation

BradenM
Copy link
Contributor

@BradenM BradenM commented May 25, 2023

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 nor projen 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)

@nx-cloud
Copy link

nx-cloud bot commented May 25, 2023

☁️ Nx Cloud Report

Attention: 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 targets

Sent with 💌 from NxCloud.

@BradenM BradenM changed the title fix(nx-monorepo): resolve dependencies in node subprojects. fix(nx-monorepo): resolve dependencies in node subprojects May 25, 2023
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>
@BradenM BradenM force-pushed the fix/nx-mono-subprojects-deps branch from 2c11d23 to 9c1e651 Compare May 26, 2023 22:28
…ust assert non wildcard

Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
@BradenM BradenM force-pushed the fix/nx-mono-subprojects-deps branch from 9c1e651 to 7c3b50c Compare May 26, 2023 22:30
@agdimech
Copy link
Contributor

Good catch! Awesome PR :)

Copy link
Member

@cogwirrel cogwirrel left a 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! 😁

@cogwirrel cogwirrel merged commit 5e5ff50 into aws:mainline May 31, 2023
4 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants