mirror of
https://github.com/zebrajr/react.git
synced 2025-12-08 07:38:51 +01:00
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
|
// we don't override to the latest version. We should figure out some
|
||||||
// better way to handle this.
|
// better way to handle this.
|
||||||
// TODO: Remove this special case.
|
// TODO: Remove this special case.
|
||||||
continue;
|
} else {
|
||||||
}
|
for (const dep of Object.keys(packageInfo.peerDependencies)) {
|
||||||
for (const dep of Object.keys(packageInfo.peerDependencies)) {
|
const depVersion = versionsMap.get(dep);
|
||||||
const depVersion = versionsMap.get(dep);
|
if (depVersion !== undefined) {
|
||||||
if (depVersion !== undefined) {
|
packageInfo.peerDependencies[dep] = pinToExactVersion
|
||||||
packageInfo.peerDependencies[dep] = pinToExactVersion
|
? depVersion
|
||||||
? depVersion
|
: '^' + depVersion;
|
||||||
: '^' + depVersion;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user