"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.exec = void 0;
const execa_1 = __importDefault(require("execa"));
function exec(command, args = [], opts = {}) {
    const cmdOpts = { stdio: 'inherit', shell: true, ...opts };
    const cmdArgs = args.filter((arg) => typeof arg === 'string');
    return execa_1.default(command, cmdArgs, cmdOpts);
}
exports.exec = exec;
