versionifier

1.3.4 • Public • Published

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 :

  • handle override settings one by one
  • add a command to write the default keys inside the package.json
    • and add command to choose value for each if default value not chosen

Package Sidebar

Install

npm i versionifier

Weekly Downloads

2

Version

1.3.4

License

MIT

Unpacked Size

45.2 kB

Total Files

12

Last publish

Collaborators

  • hyphaene