@storm-software/git-tools
Version:
Tools for managing Git repositories within a Nx workspace.
28 lines (22 loc) • 831 B
JavaScript
;Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
// ../config-tools/src/utilities/run.ts
_chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
var _child_process = require('child_process');
var LARGE_BUFFER = 1024 * 1e6;
var run = (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"
});
};
exports.run = run;