Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/princed/update-version
Update any part of version in package.json from command line
https://github.com/princed/update-version
npm package-json version
Last synced: 1 day ago
JSON representation
Update any part of version in package.json from command line
- Host: GitHub
- URL: https://github.com/princed/update-version
- Owner: princed
- Created: 2016-08-10T12:40:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-27T11:30:25.000Z (about 8 years ago)
- Last Synced: 2024-10-13T13:11:12.212Z (about 1 month ago)
- Topics: npm, package-json, version
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# update-version
Update any part of version in `package.json` from command line.
## Installation
`npm i -g update-version`## Usage
Run `update-version -- ` in folder with `package.json` to set minor version.
Example: `update-version --minor 1` updates `2.0.3` to `2.1.3`.
Several flags could be used in one command.
### Possible flags
* major
* minor
* patch
* release
* build
which correspond to following version parts: `major.minor.patch-release+build`Provide no value to flag to reset it (remove for `release` and `build`, and set to 0 for others).
Example: `update-version --patch 4 --release` updates `2.0.3-alpha.1` to `2.0.4`.