Bump the semver version of a package in packages/ directory.
Bump the version of a package in packages/ directory.
/bump-version [patch|minor|major] [package-name]
patch (default): Bug fixes, backwards compatible (0.1.0 -> 0.1.1)minor: New features, backwards compatible (0.1.0 -> 0.2.0)major: Breaking changes (0.1.0 -> 1.0.0)package-name (optional): Package directory name (e.g., "react"). Defaults to "react" if only one package or prompts if multiple./bump-version - Bump patch version of react package/bump-version minor - Bump minor version of react package/bump-version major react - Bump major version of react packageWhen this skill is invoked:
Parse the arguments to determine:
Read the current version from packages/{package-name}/package.json
Calculate the new version based on semver:
patch: increment the third number (0.1.0 -> 0.1.1)minor: increment the second number, reset patch to 0 (0.1.1 -> 0.2.0)major: increment the first number, reset minor and patch to 0 (0.2.1 -> 1.0.0)Update the version field in the package.json file
Report the change: "Bumped {package-name} from {old-version} to {new-version}"
Remind the user to commit the version bump with their other changes