conventional-changelog-aaron-preset
Version:
A personal conventional-changelog preset
11 lines (10 loc) • 366 B
JavaScript
export function createParserOpts() {
return {
headerPattern: /^(\w+)(?:\((.*)\))?: ?(.*)$/,
headerCorrespondence: ['type', 'scope', 'message'],
noteKeywords: ['BREAKING CHANGE', 'Dependencies Changes'],
notesPattern: function (noteKeywordsSelection) {
return new RegExp('^[\\s|*]*(' + noteKeywordsSelection + ')[:\\s]*(.*)', 'i')
}
}
}