Feature request: use custom preset for conventional-changelog-cli
See original GitHub issueWhen using conventional-changelog-cli we can use a custom preset with the -p [preset]
flag. For example, I usually follow a committing style that is very similar to eslint, so I usually use -p eslint
and get the expected result.
Can you add a option/flag that allows us to change the currently used preset for --conventional-commits
. Currently it seems to be hard coded to use the angular
preset (src/ConventionalCommitUtilities.js
, lines #30 and #59).
Example option/flag, usable only with lerna publish
:
-p, --conventional-preset Change the preset for conventional-changelog
Example lerna.json
option, either at the root or command.publish
namespace:
"conventionalCommits": true,
"conventionalPreset": "eslint" // defaults to null
If no preset option is passed (or is null
or false
in the config file), the -p
flag should be omitted from the call to conventional-changelog-cli, allowing for default behaviour.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
@bcoe ?
I’d rather it just be an extension of the existing
--conventional-commits
flag, basically turning the boolean into an implicit--conventional-commits angular
.This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.