@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
23 lines (22 loc) • 866 B
TypeScript
/**
* Pauses execution for a few moments before resolving
*/
export declare function sleep(amount: number): Promise<void>;
/**
* Given an input array,
* reduces it to a 2D array
* where each index is a certain chunk size
*/
export declare function chunkArray<T>(arr: T[], size?: number): T[][];
/**
* Attempts to read the supplied path to a file that exports a default function
*/
export declare function loadDefaultExportFunction(filePath: string | undefined): Promise<any>;
/**
* Checks whether or not a package.json key is allowed to be updated / managed by "lets-version"
*/
export declare function isPackageJSONDependencyKeySupported(key: string, updatePeer: boolean, updateOptional: boolean): boolean;
/**
* Left-indents content to a certain depth
*/
export declare function indentStr(content: string, indentChar?: string, depth?: number): string;