fix(build): skip tsx preload for metadata help · openclaw/openclaw@0f8ea1d
vincentkoc
·
2026-05-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -392,19 +392,15 @@ function renderSourceCommandHelpText(
|
392 | 392 | command: "nodes" | "secrets" | PrecomputedSubcommandHelpCommand, |
393 | 393 | renderContext: RootHelpRenderContext = createIsolatedRootHelpRenderContext(), |
394 | 394 | ): string { |
395 | | -const result = spawnSync( |
396 | | -process.execPath, |
397 | | -["--import", "tsx", "openclaw.mjs", command, "--help"], |
398 | | -{ |
399 | | -cwd: rootDir, |
400 | | -encoding: "utf8", |
401 | | -env: { |
402 | | - ...renderContext.env, |
403 | | -OPENCLAW_DISABLE_CLI_STARTUP_HELP_FAST_PATH: "1", |
404 | | -}, |
405 | | -timeout: COMMAND_HELP_RENDER_TIMEOUT_MS, |
| 395 | +const result = spawnSync(process.execPath, ["openclaw.mjs", command, "--help"], { |
| 396 | +cwd: rootDir, |
| 397 | +encoding: "utf8", |
| 398 | +env: { |
| 399 | + ...renderContext.env, |
| 400 | +OPENCLAW_DISABLE_CLI_STARTUP_HELP_FAST_PATH: "1", |
406 | 401 | }, |
407 | | -); |
| 402 | +timeout: COMMAND_HELP_RENDER_TIMEOUT_MS, |
| 403 | +}); |
408 | 404 | if (result.error) { |
409 | 405 | throw result.error; |
410 | 406 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。