@storm-software/git-tools
Version:
Tools for managing Git repositories within a Nx workspace.
29 lines (22 loc) • 894 B
JavaScript
;Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
// ../config-tools/src/utilities/run.ts
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
var _child_process = require('child_process');
var LARGE_BUFFER = 1024 * 1e6;
var run = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), stdio = "inherit", env = process.env) => {
return _child_process.execSync.call(void 0, command, {
cwd,
env: {
...process.env,
...env,
CLICOLOR: "true",
FORCE_COLOR: "true"
},
windowsHide: true,
stdio,
maxBuffer: LARGE_BUFFER,
killSignal: "SIGTERM"
});
}, "run");
exports.run = run;