lerna
Version:
Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository
17 lines (14 loc) • 383 B
JavaScript
import {
execSync,
npmlog_default
} from "./chunk-WC2B4V4E.js";
// libs/commands/version/src/lib/get-current-branch.ts
function getCurrentBranch(opts) {
npmlog_default.silly("getCurrentBranch");
const branch = execSync("git", ["rev-parse", "--abbrev-ref", "HEAD"], opts);
npmlog_default.verbose("currentBranch", branch);
return branch;
}
export {
getCurrentBranch
};