Skip to content

Commit

Permalink
fix: Correct issue where downstream dependency would throw `options.d…
Browse files Browse the repository at this point in the history
…ebug is not a function`
  • Loading branch information
TimothyJones committed Sep 9, 2024
1 parent 57530e5 commit 4280bcf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
11 changes: 8 additions & 3 deletions lib/lifecycles/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,18 @@ function bumpVersion(releaseAs, currentVersion, args) {
}
conventionalRecommendedBump(
{
debug:
args.verbose &&
console.info.bind(console, 'conventional-recommended-bump'),
preset: presetOptions,
path: args.path,
tagPrefix: args.tagPrefix,
lernaPackage: args.lernaPackage,
...(args.verbose
? {
debug: console.info.bind(
console,
'conventional-recommended-bump',
),
}
: {}),
},
args.parserOpts,
function (err, release) {
Expand Down
10 changes: 8 additions & 2 deletions lib/lifecycles/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,17 @@ function outputChangelog(args, newVersion) {
const context = { version: newVersion };
const changelogStream = conventionalChangelog(
{
debug:
args.verbose && console.info.bind(console, 'conventional-changelog'),
preset: presetLoader(args),
tagPrefix: args.tagPrefix,
releaseCount: args.releaseCount,
...(args.verbose
? {
debug: console.info.bind(
console,
'conventional-recommended-bump',
),
}
: {}),
},
context,
{ merges: null, path: args.path, showSignature: false },
Expand Down

0 comments on commit 4280bcf

Please sign in to comment.