Skip to content

Commit

Permalink
Merge pull request #4504 from iclanton/fix-update
Browse files Browse the repository at this point in the history
[rush] Fix an issue with pnpm-lock.yaml not getting synced back.
  • Loading branch information
iclanton authored Jan 31, 2024
2 parents dce97ab + cfa7cb2 commit 2af9641
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
10 changes: 10 additions & 0 deletions common/changes/@microsoft/rush/main_2024-01-31-21-44.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/rush",
"comment": "Fix an issue where `rush update` would sometimes not correctly sync the `pnpm-lock.yaml` file back to `common/config/rush/` after a project's `package.json` has been updated.",
"type": "none"
}
],
"packageName": "@microsoft/rush"
}
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,11 @@ export class WorkspaceInstallManager extends BaseInstallManager {
}

// Now, we compare these two objects to see if they are equal or not
shrinkwrapIsUpToDate = objectsAreDeepEqual(
packagePathToDependenciesMetaInPackageJson,
packagePathToDependenciesMetaInShrinkwrapFile
);
shrinkwrapIsUpToDate =
objectsAreDeepEqual(
packagePathToDependenciesMetaInPackageJson,
packagePathToDependenciesMetaInShrinkwrapFile
) && shrinkwrapIsUpToDate;
}

// Write the common package.json
Expand Down

0 comments on commit 2af9641

Please sign in to comment.