@peak-stone/standard-version
v4.6.0
Published
replacement for `npm version` with automatic CHANGELOG generation
Downloads
5
Readme
@peak-stone/standard-version
Installation
npm i --save-dev standard-version
Features
Added two features:
"current"
config: (Optional) base version for bump"target"
config: (Optional) target version for bump
Note: "target"
has a higher priority than "current"
Code usage
const standardVersion = require('standard-version')
;async () => {
try {
const newVersion = await standardVersion(options)
console.log('newVersion:', newVersion)
} catch (err) {
console.error(`standard-version failed with message: ${err.message}`)
}
}
Options
{
"infile": "CHANGELOG.md",
"message": "chore(release): %s",
"firstRelease": false,
"sign": false,
"noVerify": false,
"commitAll": false,
"silent": false,
"tagPrefix": "v",
"scripts": {},
"skip": {},
"dryRun": false,
// new
"current": "1.0.1",
"target": "2.0.0"
}
License
ISC