Customizable commit message analyzer for use with semantic-release
npm install @bubltechnology/customizable-commit-analyzerNPM module for analyzeCommits option in semantic-release. See semantic-release plugins.
``bash`
npm install @bubltechnology/customizable-commit-analyzer --save-dev
`json`
{
"release": {
"analyzeCommits": "@bubltechnology/customizable-commit-analyzer"
}
}
The default settings for this package are
`javascript`
feat: 'minor',
fix: 'patch',
docs: 'patch',
style: null,
refactor: 'patch',
perf: 'patch',
test: null,
chore: null
But you can customize this, by defining an object right in your package.json.
`json`
{
"config": {
"commitTypeMap": { "style": "patch" }
}
}
Or by specifying a package that exports a custom commit-type map object.
`json``
{
"config": {
"commitTypeMap": "conventional-commit-type-map"
}
}