fix(plugin-sdk): scan dependency tree before materialising openclaw s… · openclaw/openclaw@44820f8
anishesg
·
2026-04-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2387,7 +2387,9 @@ describe("linkOpenClawPeerDependencies (via installPluginFromDir)", () => {
|
2387 | 2387 | const { result } = await installFromDirWithWarnings({ pluginDir, extensionsDir }); |
2388 | 2388 | |
2389 | 2389 | expect(result.ok).toBe(true); |
2390 | | -if (!result.ok) return; |
| 2390 | +if (!result.ok) { |
| 2391 | +return; |
| 2392 | +} |
2391 | 2393 | |
2392 | 2394 | const symlinkPath = path.join(result.targetDir, "node_modules", "openclaw"); |
2393 | 2395 | const stat = fs.lstatSync(symlinkPath); |
@@ -2404,7 +2406,9 @@ describe("linkOpenClawPeerDependencies (via installPluginFromDir)", () => {
|
2404 | 2406 | const { result } = await installFromDirWithWarnings({ pluginDir, extensionsDir }); |
2405 | 2407 | |
2406 | 2408 | expect(result.ok).toBe(true); |
2407 | | -if (!result.ok) return; |
| 2409 | +if (!result.ok) { |
| 2410 | +return; |
| 2411 | +} |
2408 | 2412 | |
2409 | 2413 | const nodeModulesDir = path.join(result.targetDir, "node_modules"); |
2410 | 2414 | const symlinkPath = path.join(nodeModulesDir, "openclaw"); |
@@ -2431,7 +2435,9 @@ describe("linkOpenClawPeerDependencies (via installPluginFromDir)", () => {
|
2431 | 2435 | expect(second.ok).toBe(true); |
2432 | 2436 | expect(warnings).toHaveLength(0); |
2433 | 2437 | |
2434 | | -if (!second.ok) return; |
| 2438 | +if (!second.ok) { |
| 2439 | +return; |
| 2440 | +} |
2435 | 2441 | const symlinkPath = path.join(second.targetDir, "node_modules", "openclaw"); |
2436 | 2442 | expect(fs.lstatSync(symlinkPath).isSymbolicLink()).toBe(true); |
2437 | 2443 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。