@peak-stone/standard-version

4.6.0 • Public • Published

@peak-stone/standard-version

original readme

Installation

npm i --save-dev standard-version

Features

Added two features:

  1. "current" config: (Optional) base version for bump
  2. "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


Package Sidebar

Install

npm i @peak-stone/standard-version

Weekly Downloads

0

Version

4.6.0

License

ISC

Unpacked Size

33.1 kB

Total Files

19

Last publish

Collaborators

  • sporeg
  • ldar1992
  • neikvon