fix(plugins): satisfy dependency status lint

This commit is contained in:
Peter Steinberger
2026-05-02 19:53:49 +01:00
parent 4a3ad3963b
commit a7a6d24147

View File

@@ -91,13 +91,16 @@ function buildDependencyEntries(params: {
const resolvedPath = params.rootDir
? findDependencyPackageDir({ fromDir: params.rootDir, name })
: undefined;
return {
const entry: PluginDependencyEntry = {
name,
spec,
installed: resolvedPath !== undefined,
optional: params.optional,
...(resolvedPath ? { resolvedPath } : {}),
};
if (resolvedPath) {
entry.resolvedPath = resolvedPath;
}
return entry;
});
}