https://github.com/noah227/package-version-updater
Update version of package.json
https://github.com/noah227/package-version-updater
Last synced: 2 months ago
JSON representation
Update version of package.json
- Host: GitHub
- URL: https://github.com/noah227/package-version-updater
- Owner: noah227
- Created: 2024-03-15T05:54:41.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-02T09:05:49.000Z (about 1 year ago)
- Last Synced: 2024-04-03T04:28:17.825Z (about 1 year ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# package-version-updater
> Update version of package.json
>
> Version written as [semver](https://semver.org/) described> [中文文档](./README.zh_CN.md)
## Features
* Update version
* Auto commit## Update Strategy
* If no args specified, version will be processed as `patch+1`, which equals to `pvu --patch 1`
* Prior version update will reset sub version (e.g. `--minor` for `1.2.1` will result as `1.3.0`)## Usage
``` shell
pvu --help
```### Update Major
```
pvu --major
```> e.g. 1.2.0 -> 2.2.0
### Update Minor
```
pvu --minor
```> e.g. 1.2.0 -> 1.3.0
### Update Patch
```
pvu --patch
```> e.g. 1.2.0 -> 1.2.1
### About Locale
> Locale will be automatically detected
>
> But you can specify it using `--locale````shell
pvu --locale
```