0.1.2 • Published 3 years ago

@z1c1/revert-changelog v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@z1c1/revert-changelog

A script for reverting change log to set version. Only tested when using standard-version to generate change log.

Features

Revert CHANGELOG to the set version. Only test CHANGELOG.md file generated by standard-version.

Start

npm scripts

npm install -D @z1c1/revert-changelog

config npm scripts:

{
    "scripts": {
        "revert-changelog": "revert-changelog '${version}' '${filename}'"
    }
}

npx

npx @z1c1/revert-changelog "$version" "$filename"

Options

  1. version (Optional): The version you want to revert to. Content before and include the set version in changelog file will be simply cleared. If not set, latest version in changelog file will be reverted.

  2. filename (Optional): The filename of CHANGELOG. Default value is 'CHANGELOG.md'.

Recently changes

See the change log.

License

MIT