lerna
Version:
Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository
21 lines (18 loc) • 464 B
JavaScript
import {
execSync,
npmlog_default
} from "./chunk-WC2B4V4E.js";
// libs/commands/version/src/lib/remote-branch-exists.ts
function remoteBranchExists(gitRemote, branch, opts) {
npmlog_default.silly("remoteBranchExists", "");
const remoteBranch = `${gitRemote}/${branch}`;
try {
execSync("git", ["show-ref", "--verify", `refs/remotes/${remoteBranch}`], opts);
return true;
} catch (e) {
return false;
}
}
export {
remoteBranchExists
};