https://github.com/permaficus/enmav
enMAV is an automatic version updater that runs every time you run build command in TS
https://github.com/permaficus/enmav
npm-versioning package-json-versioning semantic-versioning versioning
Last synced: 3 months ago
JSON representation
enMAV is an automatic version updater that runs every time you run build command in TS
- Host: GitHub
- URL: https://github.com/permaficus/enmav
- Owner: permaficus
- License: mit
- Created: 2024-06-03T12:04:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T02:25:37.000Z (almost 2 years ago)
- Last Synced: 2025-09-24T04:40:56.829Z (8 months ago)
- Topics: npm-versioning, package-json-versioning, semantic-versioning, versioning
- Language: TypeScript
- Homepage:
- Size: 41 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README
# enMAV


Just another auto semantic versioning for NPM publisher
### 👀 How it works ?
Every time you build or patch your TypeScript project, enMAV will automatically increment the patch/build value in the package.json file. It's as simple as that, and then you can publish it to NPM.
### Installation
```shell
npm i enmav -g
```
### Usage
```shell
# init will create enMAV config file
enmav --init
# Or
# you can add your favourite bundler on init
enmav --init --bundler rollup
# default bundler would be tsc if you don`t specified any
# this will add extra script command in your package.json
```
The output would be :
```json
{
"name": "your-ts-app",
"version": "1.0.0",
"main": "index.ts",
"scripts": {
"build:asv": "enmav --update-version && rollup"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": ""
}
```
### Configuration
To specify the maximum build number and minor version number, refer to the example below. The configuration file is located in the root of your project folder.
`enmav.config.json`
```json
{
"updaterOptions": {
"packageFile": "./package.json",
"buildMax": 100,
"minorMax": 20,
"bundler": "tsc"
}
}
```