Skip to content

Commit 0f8ea1d

Browse files
committed
fix(build): skip tsx preload for metadata help
1 parent 8d8f5a5 commit 0f8ea1d

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

scripts/write-cli-startup-metadata.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -392,19 +392,15 @@ function renderSourceCommandHelpText(
392392
command: "nodes" | "secrets" | PrecomputedSubcommandHelpCommand,
393393
renderContext: RootHelpRenderContext = createIsolatedRootHelpRenderContext(),
394394
): 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",
406401
},
407-
);
402+
timeout: COMMAND_HELP_RENDER_TIMEOUT_MS,
403+
});
408404
if (result.error) {
409405
throw result.error;
410406
}

0 commit comments

Comments
 (0)