fix(plugins): satisfy dependency status lint · openclaw/openclaw@a7a6d24
steipete
·
2026-05-03
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -91,13 +91,16 @@ function buildDependencyEntries(params: {
|
91 | 91 | const resolvedPath = params.rootDir |
92 | 92 | ? findDependencyPackageDir({ fromDir: params.rootDir, name }) |
93 | 93 | : undefined; |
94 | | -return { |
| 94 | +const entry: PluginDependencyEntry = { |
95 | 95 | name, |
96 | 96 | spec, |
97 | 97 | installed: resolvedPath !== undefined, |
98 | 98 | optional: params.optional, |
99 | | - ...(resolvedPath ? { resolvedPath } : {}), |
100 | 99 | }; |
| 100 | +if (resolvedPath) { |
| 101 | +entry.resolvedPath = resolvedPath; |
| 102 | +} |
| 103 | +return entry; |
101 | 104 | }); |
102 | 105 | } |
103 | 106 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。