fix(doctor): handle file:// protocol for local dev plugin detection
This commit is contained in:
parent
f10734c545
commit
45fe9578ec
@ -22,6 +22,9 @@ function findPluginEntry(plugins: string[]): { entry: string; isPinned: boolean;
|
|||||||
const version = isPinned ? plugin.split("@")[1] : null
|
const version = isPinned ? plugin.split("@")[1] : null
|
||||||
return { entry: plugin, isPinned, version }
|
return { entry: plugin, isPinned, version }
|
||||||
}
|
}
|
||||||
|
if (plugin.startsWith("file://") && plugin.includes(PACKAGE_NAME)) {
|
||||||
|
return { entry: plugin, isPinned: false, version: "local-dev" }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user