Skip to content

Commit

Permalink
feat(git-semver-tags,conventional-recommended-bump): define `skip-uns…
Browse files Browse the repository at this point in the history
…table` option in cli (#1066)
  • Loading branch information
bleuarg committed Aug 13, 2023
1 parent 5e37788 commit 0ffec3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/conventional-recommended-bump/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ const cli = meow(`
},
tagPrefix: {
shortFlag: 't'
},
skipUnstable: {
type: 'boolean'
}
}
})
Expand Down
8 changes: 6 additions & 2 deletions packages/git-semver-tags/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const args = meow(`
--lerna parse lerna style git tags
--package <name> when listing lerna style tags, filter by a package
--tag-prefix <prefix> prefix to remove from the tags during their processing
`,
--skip-unstable if given, unstable tags will be skipped, e.g., x.x.x-alpha.1, x.x.x-rc.2`,
{
importMeta: import.meta,
booleanDefault: undefined,
Expand All @@ -26,14 +26,18 @@ const args = meow(`
},
tagPrefix: {
type: 'string'
},
skipUnstable: {
type: 'boolean'
}
}
})

gitSemverTags({
lernaTags: args.flags.lerna,
package: args.flags.package,
tagPrefix: args.flags.tagPrefix
tagPrefix: args.flags.tagPrefix,
skipUnstable: args.flags.skipUnstable
}, (err, tags) => {
if (err) {
console.error(err.toString())
Expand Down

0 comments on commit 0ffec3f

Please sign in to comment.