Files
openclaw/scripts/pnpm-runner.d.ts
T

31 lines
751 B
TypeScript
Raw Normal View History

2026-04-06 18:49:31 +01:00
import type { ChildProcess, SpawnOptions } from "node:child_process";
export type PnpmRunnerParams = {
pnpmArgs?: string[];
nodeArgs?: string[];
npmExecPath?: string;
nodeExecPath?: string;
platform?: NodeJS.Platform;
comSpec?: string;
2026-04-06 19:51:36 +01:00
cwd?: string;
detached?: boolean;
2026-04-06 18:49:31 +01:00
stdio?: SpawnOptions["stdio"];
env?: NodeJS.ProcessEnv;
};
2026-04-06 19:51:36 +01:00
export function resolvePnpmRunner(params?: PnpmRunnerParams): {
command: string;
args: string[];
shell: boolean;
windowsVerbatimArguments?: boolean;
env?: NodeJS.ProcessEnv;
};
export function createPnpmRunnerSpawnSpec(params?: PnpmRunnerParams): {
command: string;
args: string[];
options: SpawnOptions;
};
2026-04-06 18:49:31 +01:00
export function spawnPnpmRunner(params?: PnpmRunnerParams): ChildProcess;