mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
include fix from #3256
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
58595a95d0
commit
56ee1abf16
@ -365,7 +365,13 @@ export class ExtensionDiscovery extends Singleton {
|
||||
let isCompatible = isBundled;
|
||||
|
||||
if (manifest.engines?.lens) {
|
||||
isCompatible = semver.satisfies(appSemVer, manifest.engines.lens);
|
||||
const appSemVerLatestImplied = appSemVer;
|
||||
|
||||
if (appSemVerLatestImplied.prerelease?.[0] === "latest") {
|
||||
/* remove the "latest" prerelease tag so as not to require the extension to specify it */
|
||||
appSemVerLatestImplied.prerelease = [];
|
||||
}
|
||||
isCompatible = semver.satisfies(appSemVerLatestImplied, manifest.engines.lens);
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user