import {
  __name,
  init_esm_shims
} from "./chunk-65NJ2BNV.js";

// src/utilities/run.ts
init_esm_shims();
import { exec, execSync } from "node:child_process";
var LARGE_BUFFER = 1024 * 1e6;
var run = /* @__PURE__ */ __name((config, command, cwd = config.workspaceRoot ?? process.cwd(), stdio = "inherit", env = process.env) => {
  return execSync(command, {
    cwd,
    env: {
      ...process.env,
      ...env,
      CLICOLOR: "true",
      FORCE_COLOR: "true"
    },
    windowsHide: true,
    stdio,
    maxBuffer: LARGE_BUFFER,
    killSignal: "SIGTERM"
  });
}, "run");
var runAsync = /* @__PURE__ */ __name((config, command, cwd = config.workspaceRoot ?? process.cwd(), env = process.env) => {
  return exec(command, {
    cwd,
    env: {
      ...process.env,
      ...env,
      CLICOLOR: "true",
      FORCE_COLOR: "true"
    },
    windowsHide: true,
    maxBuffer: LARGE_BUFFER,
    killSignal: "SIGTERM"
  });
}, "runAsync");

export {
  LARGE_BUFFER,
  run,
  runAsync
};
