t-comm
Version:
专业、稳定、纯粹的工具库
27 lines (26 loc) • 811 B
TypeScript
import type { IAppInfo } from './types';
export declare function parseChangeLog({ changelogStr, targetVersion, }: {
changelogStr: string;
targetVersion: string;
}): string;
/**
* 生成版本信息,可以用来发送到群聊中
* @param {object} config 配置信息
* @param {string} config.readmeFilePath changelog文件地址
* @param {object} config.appInfo package.json信息
* @returns {string} 版本信息
* @example
*
* const appInfo = require(`${rootPath}/package.json`);
* const readmeFilePath = `${rootPath}/CHANGELOG.md`;
*
* const content = genVersionTip({
* readmeFilePath,
* appInfo,
* });
*/
export declare function genVersionTip({ readmeFilePath, appInfo, showNpmLink, }: {
showNpmLink?: boolean;
readmeFilePath: string;
appInfo: IAppInfo;
}): string;