Skip to content
Permalink
Browse files
feat: add --lerna-package flag used to extract tags in case of lerna …
…repo (#503)

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
  • Loading branch information
micaelmbagira and bcoe committed May 4, 2021
1 parent 3d341c2 commit f579ff08f386aaae022a395ed0dbec9af77a5d49
Showing with 6 additions and 1 deletion.
  1. +4 −0 command.js
  2. +2 −1 lib/lifecycles/bump.js
@@ -99,6 +99,10 @@ const yargs = require('yargs')
default: defaults.preset,
describe: 'Commit message guideline preset'
})
.option('lerna-package', {
type: 'string',
describe: 'Name of the package from which the tags will be extracted'
})
.check((argv) => {
if (typeof argv.scripts !== 'object' || Array.isArray(argv.scripts)) {
throw Error('scripts must be an object')
@@ -120,7 +120,8 @@ function bumpVersion (releaseAs, currentVersion, args) {
debug: args.verbose && console.info.bind(console, 'conventional-recommended-bump'),
preset: presetOptions,
path: args.path,
tagPrefix: args.tagPrefix
tagPrefix: args.tagPrefix,
lernaPackage: args.lernaPackage
}, function (err, release) {
if (err) return reject(err)
else return resolve(release)

0 comments on commit f579ff0

Please sign in to comment.