← 全部工具

@stacksjs/bumpx

热度 65 更新于 开发与构建

Automatically bump your versions.

npmauto-collected

安装

npm
npm install -g @stacksjs/bumpx

通过 npm 安装。

<p align="center"<img src=".github/art/cover.jpg" alt="Social Card of this repo"</p

bumpx

A fast, dependency-free version bumping tool similar to bumpp and version-bump-prompt, built for Bun.

Features

  • 🚀 Zero dependencies - Built using only Node.js built-ins and Bun tooling
  • 📦 Semver compliant - Supports all semantic versioning release types
  • 🔄 Monorepo support - Recursive bumping with --recursive flag
  • 🎯 Git integration - Automatic commit, tag, and push
  • ⚡ Fast execution - Compiled binary for instant startup
  • 🛠 Highly configurable - Config file and CLI options
  • 🎨 Interactive prompts - Choose version increment interactively
  • 🔧 Custom commands - Execute scripts before git operations

Installation

# Install globally
bun install -g @stacksjs/bumpx

# Or use with bunx
bunx @stacksjs/bumpx patch

Usage

Basic Usage

# Bump patch version (1.0.0 → 1.0.1)
bumpx patch

# Bump minor version (1.0.0 → 1.1.0)
bumpx minor

# Bump major version (1.0.0 → 2.0.0)
bumpx major

# Bump to specific version
bumpx 1.2.3

bumpx prompt


### Prerelease Versions

Bump to prerelease

bumpx prepatch --preid beta # 1.0.0 → 1.0.1-beta.0 bumpx preminor --preid alpha # 1.0.0 → 1.1.0-alpha.0 bumpx premajor --preid rc # 1.0.0 → 2.0.0-rc.0

Increment prerelease

bumpx prerelease # 1.0.1-beta.0 → 1.0.1-beta.1


### Git Integration