Skip to content

Commit

Permalink
Fix an issue with pnpm-lock.yaml not getting synced back.
Browse files Browse the repository at this point in the history
  • Loading branch information
iclanton committed Jan 31, 2024
1 parent 5491b95 commit cfa7cb2
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 cfa7cb2

Please sign in to comment.