Skip to content

Commit eafc4dc

Browse files
committed
update
1 parent 49061c3 commit eafc4dc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/managers/builtin/helpers.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ export async function runUV(
6868
): Promise<string> {
6969
log?.info(`Running: uv ${args.join(' ')}`);
7070
return new Promise<string>((resolve, reject) => {
71-
const proc = spawnProcess('uv', args, { cwd: cwd, timeout });
71+
const spawnOptions: { cwd?: string; timeout?: number } = { cwd };
72+
if (timeout !== undefined) {
73+
spawnOptions.timeout = timeout;
74+
}
75+
const proc = spawnProcess('uv', args, spawnOptions);
7276
token?.onCancellationRequested(() => {
7377
proc.kill();
7478
reject(new CancellationError());

0 commit comments

Comments
 (0)