UNPKG

520 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.deduceDefaultBase = void 0;
4const child_process_1 = require("child_process");
5function deduceDefaultBase() {
6 const nxDefaultBase = 'main';
7 try {
8 return ((0, child_process_1.execSync)('git config --get init.defaultBranch').toString().trim() ||
9 nxDefaultBase);
10 }
11 catch (_a) {
12 return nxDefaultBase;
13 }
14}
15exports.deduceDefaultBase = deduceDefaultBase;
16//# sourceMappingURL=default-base.js.map
\No newline at end of file