Skip to content

test: ensure only selected workspace packages are linked on deploy#9257

Merged
zkochan merged 1 commit intomainfrom
gluxon/test-deploy-only-has-selected-workspace-packages
Mar 11, 2025
Merged

test: ensure only selected workspace packages are linked on deploy#9257
zkochan merged 1 commit intomainfrom
gluxon/test-deploy-only-has-selected-workspace-packages

Conversation

@gluxon
Copy link
Member

@gluxon gluxon commented Mar 10, 2025

Motivation

See motivation at:

Changes

When a future commit updates allProjectsGraph to always contains the full project graph, I'd like to make sure we don't accidentally inject all workspace packages on a pnpm deploy. Only the selected workspace package should be injected into the deployed dir, not the allProjectsGraph.

Adding 2 new tests to make sure this doesn't accidentally break in the future.

@gluxon gluxon marked this pull request as ready for review March 10, 2025 05:00
@gluxon gluxon requested a review from zkochan as a code owner March 10, 2025 05:00
Copy link
Member

@zkochan zkochan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use test.each and just pass the different nodeLinker values?

@gluxon
Copy link
Member Author

gluxon commented Mar 11, 2025

Yes, definitely. I should have done that from the start.

@gluxon gluxon force-pushed the gluxon/test-deploy-only-has-selected-workspace-packages branch from 84abd06 to e8a1431 Compare March 11, 2025 02:04
@zkochan zkochan enabled auto-merge (squash) March 11, 2025 02:11
@zkochan zkochan merged commit e781c2b into main Mar 11, 2025
14 of 16 checks passed
@zkochan zkochan deleted the gluxon/test-deploy-only-has-selected-workspace-packages branch March 11, 2025 03:15
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.

2 participants