bbump
v1.0.2
Published
Bump version based on branch prefix
Downloads
10
Readme
Bump Version based on branch prefix
Smart version bumper for npm packages with branch-aware defaults
bbump, the prefix b represents branch
Features
- Interactive prompt for version selection
- Automatically suggests version bump type (
minororpatch) based on branch prefix - Creates a standardized commit with only
package.jsonandyarn.lock/package-lock.json - Works with both npm and yarn
- Zero configuration required
Installation
You can use npx bbump without installation (recommended). This way, you can always get latest version.
Or Install it as a dev dependency:
npm install -D bbumpor
yarn add -D bbumpUsage
Run in your project directory:
npx bbumpOr add script to your package.json:
{
"scripts": {
"bumpVersion": "npx bbump"
}
}Or if you installed as dev dependency:
{
"scripts": {
"bumpVersion": "bbump"
}
}How It Works
The tool follows this logic:
Branch Detection
feat/,feature/,minor/prefixes →minorbump- All others →
patchbump
Package Manager
Automatically detects whether to usenpm versionoryarn versionGit Integration
Commits onlypackage.jsonand the lockfile with message:"chore: bump version"
Contributing
PRs are welcome! Please open an issue first to discuss proposed changes.
License
MIT © helloint
