Skip to content

Commit a617e21

Browse files
authored
Fix changeset checker warning (#4877)
1 parent 9ec8ad5 commit a617e21

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/check_changeset.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,17 @@ const bumpRank: Record<string, number> = {
3737
// numerical rank, bump text, package name.
3838
*/
3939
function getHighestBump(changesetPackages: Record<string, string>) {
40+
const firebasePkgJson = require(resolve(
41+
root,
42+
'packages/firebase/package.json'
43+
));
4044
let highestBump = bumpRank.patch;
4145
let highestBumpText = 'patch';
4246
let bumpPackage = '';
4347
for (const pkgName of Object.keys(changesetPackages)) {
4448
if (
4549
pkgName !== 'firebase' &&
50+
pkgName in firebasePkgJson.dependencies &&
4651
bumpRank[changesetPackages[pkgName]] > highestBump
4752
) {
4853
highestBump = bumpRank[changesetPackages[pkgName]];

0 commit comments

Comments
 (0)