Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bump-version

ianstormtaylor581MIT0.5.0

Easily bump the version of all the different package.json equivalents.

readme

bump

Easily bump the version of all the different package.json equivalents.

Installation

$ npm install -g ianstormtaylor/bump

Usage

$ bump 0.4.1

    Version bumped to 0.4.1 in package.json and component.json.

$ bump patch

    Version bumped to 0.4.2 in package.json and component.json.

$ bump minor

    Version bumped to 0.5.0 in package.json and component.json.

$ bump major

    Version bumped to 1.0.0 in package.json and component.json.

API

bump(root, version, manifests)

Bump to version in root, an optional array of manifests can be provided.

bump('/path/to/pkg', '0.3.1');
bump('/path/to/pkg', 'patch');
bump('/path/to/pkg', 'minor');
bump('/path/to/pkg', 'major', ['package.json']); // only package.json

License

MIT

changelog

0.5.0 / 2015-08-02

  • renamed to bump-version and published to npm
  • throw error if version is invalid
  • adds --print-version flag for machine-consumption
  • adds --directory flag for customizable behavior
  • changed output colors (green for version number, cyan for manifest files)
  • updating deps

0.4.2 - January 19, 2015

  • add whitespace to end of manifest

0.4.1 - July 13, 2014

  • ignore versionless manifests

0.4.0 - June 20, 2014

  • add api bump(path, version, manifests)

0.3.0 - February 10, 2013

  • fix relying on package.json
  • handle private packages nicely

0.2.0 - February 5, 2013

  • add major, minor, patch shortcuts thanks to @anthonyshort's genius

0.1.0 - February 5, 2013

  • rename to bump thanks to @anthonyshort's genius

0.0.1 - February 5, 2013

:sparkles: