mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:00:42 +00:00
fix(plugins): satisfy dependency status lint
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user