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

Package detail

versionifier

hyphaene59MIT1.3.4

a CLI designed to easily manage updating packages versions, with some usefull git options

npm, package version, update, git, commit, push

readme

Goal

Hi there ! Tired to manually update your package.json to increase your version number ? This CLI solves this issue.

Install

globally

First, install it globally :

yarn global add versionifier

or

npm install -g versionifier

(those might need sudo to work)

locally

yarn add versionifier

or

npm install --save versionifier

Usage

Here are the commands :

$ versionifier version # output the version
$ versionifier help # output the available commands
$ versionifier default # add the default options in the package.json
$ versionifier patch # increase by 1 the patch version of your current package.json
$ versionifier minor # increase by 1 the minor version of your current package.json
$ versionifier major # add scripts package.json

Here are some scripts you can add inside the package.json :

"up:patch": "versionifier patch",
"up:minor": "versionifier minor",
"up:major": "versionifier major",

(then run)

yarn up:patch

or

npm run up:patch

for example

options : ( defaultValues)

  • commitIfOnlyPackageJsonInStage: false
  • commitIfMultipleFilesInStage: false
  • commitMessage: 'update version package to $VERSION'
  • push : false
  • remoteRepo: 'origin'
  • publish : false

Roadmap

v1 :

  • <input disabled="" type="checkbox"> handle override settings one by one
  • <input checked="" disabled="" type="checkbox"> add a command to write the default keys inside the package.json
    • <input disabled="" type="checkbox"> and add command to choose value for each if default value not chosen