skip compat check for non semver

This commit is contained in:
Sebastian Herrlinger
2026-03-27 00:47:37 +01:00
parent 781ba409e7
commit ef6d5f25a0
+1
View File
@@ -89,6 +89,7 @@ export async function resolvePathPluginTarget(spec: string) {
}
export async function checkPluginCompatibility(target: string, opencodeVersion: string) {
if (!semver.valid(opencodeVersion) || semver.eq(opencodeVersion, "0.0.0")) return
const pkg = await readPluginPackage(target).catch(() => undefined)
if (!pkg) return
const engines = pkg.json.engines