From fc18bafb716e915a486a23848e30fc516847c104 Mon Sep 17 00:00:00 2001 From: Anton Nikolaev Date: Thu, 30 Apr 2020 04:26:17 -0700 Subject: [PATCH] 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 --- desktop/plugins/seamammals/package.json | 2 +- desktop/scripts/workspaces.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/desktop/plugins/seamammals/package.json b/desktop/plugins/seamammals/package.json index 7ad3d0cbf..b4f873075 100644 --- a/desktop/plugins/seamammals/package.json +++ b/desktop/plugins/seamammals/package.json @@ -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", diff --git a/desktop/scripts/workspaces.ts b/desktop/scripts/workspaces.ts index 4546aa3cd..8ad524f11 100644 --- a/desktop/scripts/workspaces.ts +++ b/desktop/scripts/workspaces.ts @@ -115,6 +115,11 @@ async function bumpWorkspaceVersions( ) { changed = true; } + if ( + updateDependencies(json.peerDependencies, localPackageNames, newVersion) + ) { + changed = true; + } if (changed) { await savePackageJson(pkg); }