We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49061c3 commit eafc4dcCopy full SHA for eafc4dc
1 file changed
src/managers/builtin/helpers.ts
@@ -68,7 +68,11 @@ export async function runUV(
68
): Promise<string> {
69
log?.info(`Running: uv ${args.join(' ')}`);
70
return new Promise<string>((resolve, reject) => {
71
- const proc = spawnProcess('uv', args, { cwd: cwd, timeout });
+ const spawnOptions: { cwd?: string; timeout?: number } = { cwd };
72
+ if (timeout !== undefined) {
73
+ spawnOptions.timeout = timeout;
74
+ }
75
+ const proc = spawnProcess('uv', args, spawnOptions);
76
token?.onCancellationRequested(() => {
77
proc.kill();
78
reject(new CancellationError());
0 commit comments