Skip to content

Commit

Permalink
build: update peer deps check to support stable versions when cutting…
Browse files Browse the repository at this point in the history
… a major prerelease

Prior, to this change when a new major prerelease the check did not allow `^17.0.0 || ^17.0.0-next.0`.
  • Loading branch information
alan-agius4 committed Aug 30, 2023
1 parent 3fa465e commit 5e4b532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release-checks/dependency-ranges/peer-deps-check.mts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export async function checkPeerDependencies(

let expectedFwPeerDep = `^${major}.0.0`;
if (isMajor && isPrerelease) {
expectedFwPeerDep = `^${major}.0.0-next.0`;
expectedFwPeerDep += ` || ^${major}.0.0-next.0`;
} else if (isPrerelease) {
expectedFwPeerDep = `^${major}.0.0 || ^${major}.${minor}.0-next.0`;
expectedFwPeerDep += ` || ^${major}.${minor}.0-next.0`;
}

const failures: string[] = [];
Expand Down

0 comments on commit 5e4b532

Please sign in to comment.