Fix: Don't skip writing updated package.json
Another fix to previous commit. The special case for use-sync-external-store still needs to write out the updated package.json, because we also use that branch to update the version field.
This commit is contained in:
parent
e39b2c8998
commit
72e48b8e16
|
@ -250,14 +250,14 @@ function updatePackageVersions(
|
|||
// we don't override to the latest version. We should figure out some
|
||||
// better way to handle this.
|
||||
// TODO: Remove this special case.
|
||||
continue;
|
||||
}
|
||||
for (const dep of Object.keys(packageInfo.peerDependencies)) {
|
||||
const depVersion = versionsMap.get(dep);
|
||||
if (depVersion !== undefined) {
|
||||
packageInfo.peerDependencies[dep] = pinToExactVersion
|
||||
? depVersion
|
||||
: '^' + depVersion;
|
||||
} else {
|
||||
for (const dep of Object.keys(packageInfo.peerDependencies)) {
|
||||
const depVersion = versionsMap.get(dep);
|
||||
if (depVersion !== undefined) {
|
||||
packageInfo.peerDependencies[dep] = pinToExactVersion
|
||||
? depVersion
|
||||
: '^' + depVersion;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue