fix(cli): resolve subdir plugins during build installs

This commit is contained in:
saberzero1
2026-03-18 02:39:45 +01:00
parent 166b9c87d8
commit f2c2a31292
5 changed files with 203 additions and 49 deletions
+1 -2
View File
@@ -6,12 +6,11 @@ import { getPluginSubpathEntry, toFileUrl } from "./gitLoader"
export async function loadComponentsFromPackage(
pluginName: string,
manifest: PluginManifest | null,
subdir?: string,
): Promise<void> {
if (!manifest?.components) return
try {
const componentsPath = getPluginSubpathEntry(pluginName, "./components", subdir)
const componentsPath = getPluginSubpathEntry(pluginName, "./components")
let componentsModule: Record<string, unknown>
if (componentsPath) {