@better-builds/lets-version
Version:
A package that reads your conventional commits and git history and recommends (or applies) a SemVer version bump for you
13 lines (12 loc) • 555 B
TypeScript
import { BumpType, GitCommit, GitCommitWithConventional } from './types.js';
/**
* Given an array of already parsed commits, attempts
* to use the official conventional commits parser
* to map details into an enriched Commit object
*/
export declare function parseToConventional(commits: GitCommit[]): GitCommitWithConventional[];
/**
* Given a git commit that's been parsed into a conventional commit format
* returns a bump type recommendation
*/
export declare function conventionalCommitToBumpType(commit: GitCommitWithConventional): BumpType;