Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose --skip-unstable flag from conventional-recommended-bump #759

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions command.js
Expand Up @@ -103,6 +103,10 @@ const yargs = require('yargs')
type: 'string',
describe: 'Name of the package from which the tags will be extracted'
})
.option('skip-unstable', {
type: 'boolean',
describe: 'If true, unstable tags will be skipped for determining the most recent tag, e.g., x.x.x-alpha.1, x.x.x-rc.2'
})
.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 @@ -121,7 +121,8 @@ function bumpVersion (releaseAs, currentVersion, args) {
preset: presetOptions,
path: args.path,
tagPrefix: args.tagPrefix,
lernaPackage: args.lernaPackage
lernaPackage: args.lernaPackage,
skipUnstable: args.skipUnstable
}, function (err, release) {
if (err) return reject(err)
else return resolve(release)
Expand Down