README
versionize
Small package that generate package version and run npm version
based on current version, HEAD branch and commit hash.
For example:
1.0.2-branch-name-6178a07d
It's usefull for publishing pre-version of package for test in production environments.
Install
yarn add versionize --dev
or
npm i versionize --save-dev
Usage
Add script into your npm scripts:
{
"name": "your-project",
"scripts": {
"versionize": "versionize"
}
}
Run
yarn versionize
or
npm run versionize
License
MIT © kupibilet.ru