fix(tooling): relax cli startup metadata render timeout

This commit is contained in:
Peter Steinberger
2026-04-07 01:43:58 +01:00
parent 1111639a11
commit d6b2be95b6

View File

@@ -25,6 +25,7 @@ const rootDir = path.resolve(scriptDir, "..");
const distDir = path.join(rootDir, "dist");
const outputPath = path.join(distDir, "cli-startup-metadata.json");
const extensionsDir = path.join(rootDir, "extensions");
const ROOT_HELP_RENDER_TIMEOUT_MS = 60_000;
const CORE_CHANNEL_ORDER = [
"telegram",
"whatsapp",
@@ -188,7 +189,7 @@ export async function renderBundledRootHelpText(
cwd: _distDirOverride,
encoding: "utf8",
env: renderContext.env,
timeout: 30_000,
timeout: ROOT_HELP_RENDER_TIMEOUT_MS,
});
if (result.error) {
throw result.error;
@@ -228,7 +229,7 @@ function renderSourceRootHelpText(
cwd: rootDir,
encoding: "utf8",
env: renderContext.env,
timeout: 30_000,
timeout: ROOT_HELP_RENDER_TIMEOUT_MS,
},
);
if (result.error) {