Fix workspace version bumping script to also bump peerDependencies

Summary: Fixed bumping of local peer dependencies and manually bumped the version which was not bumped automatically during the latest release.

Reviewed By: passy

Differential Revision: D21308701

fbshipit-source-id: 936a04b432ad3c9313644c1bf96966c52e022d7e
This commit is contained in:
Anton Nikolaev
2020-04-30 04:26:17 -07:00
committed by Facebook GitHub Bot
parent b0a0b0f355
commit fc18bafb71
2 changed files with 6 additions and 1 deletions

View File

@@ -21,7 +21,7 @@
"prepack": "flipper-pkg lint && flipper-pkg bundle"
},
"peerDependencies": {
"flipper": "0.39.0"
"flipper": "0.40.0"
},
"devDependencies": {
"flipper": "0.40.0",

View File

@@ -115,6 +115,11 @@ async function bumpWorkspaceVersions(
) {
changed = true;
}
if (
updateDependencies(json.peerDependencies, localPackageNames, newVersion)
) {
changed = true;
}
if (changed) {
await savePackageJson(pkg);
}