-
Notifications
You must be signed in to change notification settings - Fork 587
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 rush add -p affecting all subspace projects #4658
Conversation
common/changes/@microsoft/rush/will-subspace-patch-20_2024-04-17-21-20.json
Outdated
Show resolved
Hide resolved
@@ -325,6 +325,7 @@ export class PackageJsonUpdater { | |||
this._rushConfiguration | |||
); | |||
|
|||
// console.log('adding project, updating projects: ', projects); |
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.
remove this line?
@@ -342,10 +343,12 @@ export class PackageJsonUpdater { | |||
dependencyAnalyzer: DependencyAnalyzer, | |||
options: IPackageJsonUpdaterRushAddOptions | |||
): Promise<IUpdateProjectOptions[]> { | |||
const { packagesToUpdate, devDependency, peerDependency, updateOtherPackages } = options; | |||
const { projects, packagesToUpdate, devDependency, peerDependency, updateOtherPackages } = options; |
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.
Would it be more intuitive to design the API as _updateProjects(projects, dependencyAnalyzer, { subspace, ... })
?
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.
Never mind. It's a private function.
Thanks @william2958 , @octogonz , and all for a quick fix, and for your continued dedication to this project! |
Summary
Currently running
rush add -p <package_name>
results in every project being updated in a subspace. This fixes the issue.Details
How it was tested
Impacted documentation