Skip to content

Commit

Permalink
feat: Added support for meso convention
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur-kushwaha committed Jan 23, 2018
1 parent 9a99607 commit f83c2cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/lifecycles/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const path = require('path')
const runLifecycleScript = require('../run-lifecycle-script')
const semver = require('semver')
const writeFile = require('../write-file')
const config = require('conventional-changelog-meso/bump');

var configsToUpdate = {}

Expand Down Expand Up @@ -119,7 +120,7 @@ function bumpVersion (releaseAs, callback) {
})
} else {
conventionalRecommendedBump({
preset: 'angular'
config : config
}, function (err, release) {
if (err) return reject(err)
else return resolve(release)
Expand Down
3 changes: 2 additions & 1 deletion lib/lifecycles/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const conventionalChangelog = require('conventional-changelog')
const fs = require('fs')
const runLifecycleScript = require('../run-lifecycle-script')
const writeFile = require('../write-file')
const config = require('conventional-changelog-meso');

module.exports = function (args, newVersion) {
if (args.skip.changelog) return Promise.resolve()
Expand All @@ -30,7 +31,7 @@ function outputChangelog (args, newVersion) {
var context
if (args.dryRun) context = {version: newVersion}
var changelogStream = conventionalChangelog({
preset: 'angular'
config:config
}, context, {merges: null})
.on('error', function (err) {
return reject(err)
Expand Down

0 comments on commit f83c2cb

Please sign in to comment.