API 参考
    正在准备搜索索引...
    interface VersionBumpOptions {
        all?: boolean;
        changelog?: boolean;
        commit?: string | boolean;
        confirm?: boolean;
        currentVersion?: string;
        cwd?: string;
        execute?: string;
        ignoreScripts?: boolean;
        preid?: string;
        push?: boolean;
        recursive?: boolean;
        scopeName?: string;
        skipGitVerify?: boolean;
        tag?: string | boolean;
    }
    索引

    属性

    all?: boolean

    Indicates whether the git commit should include ALL files (git commit --all) rather than just the files that were modified by versionBump().

    Defaults to false.

    changelog?: boolean

    是否生成CHANGELOG.md文档

    commit?: string | boolean

    指示是否创建 git 提交。可以设置为自定义提交消息字符串,默认是“true”

    • 消息字符串中的任何 '%s' 占位符都将被替换为新版本号。
    • 如果消息字符串不包含任何 '%s' 占位符,则新版本号将附加到消息中。
    confirm?: boolean

    支持用户确认提示,默认:true

    currentVersion?: string

    当前版本号

    cwd?: string

    工作目录,用作查找所有文件的基础。默认:process.cwd()

    execute?: string

    在 bumping 之后和 commit 之前执行其他命令

    ignoreScripts?: boolean

    指示是否忽略version版本脚本。默认:false

    preid?: string

    预发行类型(例如 “alpha”、“beta”、“next”),默认:“alpha”

    push?: boolean

    是否推送 git commit 和 tag。默认:true

    recursive?: boolean

    递归地为 monorepo 加载文件。仅在发布monorepo主模块时有效,默认false

    scopeName?: string

    monorepo模式下,指定模块名包名

    skipGitVerify?: boolean

    指示是否绕过 git 提交钩子 ('git commit --no-verify')。默认:false

    tag?: string | boolean

    指示是否标记 git 提交。可以设置为自定义标签字符串,默认是“true”

    • 标签字符串可以是自定义字符串,例如 'v%s'
    • 标签字符串中的任何 '%s' 占位符都将被替换为新版本号
    • 如果标签字符串不包含任何 '%s' 占位符,则新版本号将附加到标签中