Skip to content

Commit

Permalink
chore: fix the linter check to be aware of prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
rix0rrr committed Oct 5, 2023
1 parent c68ea44 commit b5aa2ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/@aws-cdk/pkglint/lib/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ export class RegularDependenciesMustSatisfyPeerDependencies extends ValidationRu
if (depVersion === undefined) { continue; }

// Make sure that depVersion satisfies peerVersion.
if (!semver.intersects(depVersion, peerVersion)) {
if (!semver.satisfies(depVersion, peerVersion, { includePrerelease: true })) {
pkg.report({
ruleName: this.name,
message: `dependency ${depName}: concrete version ${depVersion} does not match peer version '${peerVersion}'`,
Expand Down

0 comments on commit b5aa2ef

Please sign in to comment.