Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/integration/Plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ export default class Plugin {
return await perform()
}
const getMatchingVersion = async () => {
if (!this.isPresent) return null

if (this.isLocalSource) {
const info = this.projectVersion ? this._projectInfo : this._sourceInfo
const satisfiesConstraint = !this.hasValidRequestVersion || semver.satisfies(info.version, this.requestedVersion, semverOptions)
Expand All @@ -297,8 +299,6 @@ export default class Plugin {
return info.version
}

if (!this.isPresent) return null

// check if the latest version is compatible
const satisfiesConstraint = !this.hasValidRequestVersion || semver.satisfies(this._sourceInfo.version, this.requestedVersion, semverOptions)
const satisfiesFramework = semver.satisfies(framework, this.frameworkVersion, semverOptions)
Expand Down
Loading