UNPKG

@storm-software/git-tools

Version:

Tools for managing Git repositories within a Nx workspace.

39 lines (37 loc) 964 B
import { execSync, exec } from 'node:child_process'; // ../config-tools/src/utilities/run.ts var LARGE_BUFFER = 1024 * 1e6; var run = (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", encoding: "utf8" }); }; var runAsync = (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", encoding: "utf8" }); }; export { run, runAsync }; //# sourceMappingURL=chunk-RPK5AKGK.js.map //# sourceMappingURL=chunk-RPK5AKGK.js.map