Generate a changelog as part of the npm version command.
npm version [patch|minor|major]to create a release
$ npm install @studio/changes --save-dev
Add this to your
The scripts can also be added, if they do not exist yet:
$ node_modules/.bin/changes --init
If the "version" script already exists, this has no effect. Existing file indentation style will be preserved.
-h: Display a help message.
-f: Specify the name of the changelog file. Defaults to
--init: Add version lifecycle scripts to
Configure your preferred editor with the
$EDITOR environment variable.
If the current version in your
package.json is already in the changelog, the
changes command aborts and shows the unreleased commits. Preview the release
notes for the next release like this: