fix(FN-4639): resolve workspace lint and typecheck regressions

Fusion-Task-Id: FN-4639
Fusion-Task-Lineage: 40745d49-dd20-4c51-87e3-42062417f788
This commit is contained in:
Fusion
2026-05-15 10:38:04 -07:00
committed by gsxdsm
parent 4ce58f230b
commit 6079645c8c
2 changed files with 8 additions and 6 deletions

View File

@@ -21,15 +21,16 @@ export class NativeSandboxBackend implements SandboxBackend {
async run(command: string, options: SandboxRunOptions): Promise<SandboxRunResult> {
try {
const { stdout, stderr } = await execAsync(command, {
const execOptions: Parameters<typeof exec>[1] = {
cwd: options.cwd,
timeout: options.timeoutMs,
maxBuffer: options.maxBuffer,
...(options.encoding !== undefined && { encoding: options.encoding }),
...(options.shell !== undefined && { shell: options.shell as any }),
...(typeof options.shell === "string" && { shell: options.shell }),
...(options.env !== undefined && { env: options.env }),
...(options.signal !== undefined && { signal: options.signal }),
} as any);
};
const { stdout, stderr } = await execAsync(command, execOptions);
return {
stdout: stdout?.toString?.() ?? "",