UNPKG

@nrwl/workspace

Version:

The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.

16 lines 520 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deduceDefaultBase = void 0; const child_process_1 = require("child_process"); function deduceDefaultBase() { const nxDefaultBase = 'main'; try { return ((0, child_process_1.execSync)('git config --get init.defaultBranch').toString().trim() || nxDefaultBase); } catch (_a) { return nxDefaultBase; } } exports.deduceDefaultBase = deduceDefaultBase; //# sourceMappingURL=default-base.js.map