Skip to content

Commit

Permalink
feat: add --lerna-package flag used to extract tags in case of lerna …
Browse files Browse the repository at this point in the history
…repo
  • Loading branch information
micaelmbagira committed Mar 10, 2020
1 parent 2f04ac8 commit d9465cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions command.js
Expand Up @@ -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')
Expand Down
3 changes: 2 additions & 1 deletion lib/lifecycles/bump.js
Expand Up @@ -128,7 +128,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)
Expand Down

0 comments on commit d9465cf

Please sign in to comment.