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:
@@ -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?.() ?? "",
|
||||
|
||||
Reference in New Issue
Block a user