Skip to content

Commit 9e93a23

Browse files
acdlitezhengjitf
authored andcommitted
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.
1 parent 522fd4c commit 9e93a23

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

scripts/rollup/build-all-release-channels.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,14 @@ function updatePackageVersions(
250250
// we don't override to the latest version. We should figure out some
251251
// better way to handle this.
252252
// TODO: Remove this special case.
253-
continue;
254-
}
255-
for (const dep of Object.keys(packageInfo.peerDependencies)) {
256-
const depVersion = versionsMap.get(dep);
257-
if (depVersion !== undefined) {
258-
packageInfo.peerDependencies[dep] = pinToExactVersion
259-
? depVersion
260-
: '^' + depVersion;
253+
} else {
254+
for (const dep of Object.keys(packageInfo.peerDependencies)) {
255+
const depVersion = versionsMap.get(dep);
256+
if (depVersion !== undefined) {
257+
packageInfo.peerDependencies[dep] = pinToExactVersion
258+
? depVersion
259+
: '^' + depVersion;
260+
}
261261
}
262262
}
263263
}

0 commit comments

Comments
 (0)