import { execFile } from "node:child_process";
export function runCommand(command, args, cwd) {
    return new Promise((resolve) => {
        execFile(command, args, { cwd }, (error, stdout, stderr) => {
            resolve({
                code: error && typeof error.code === "number" ? error.code : 0,
                stdout,
                stderr
            });
        });
    });
}
