Skip to content

Commit

Permalink
fix: show library name in semantic-release debug output
Browse files Browse the repository at this point in the history
When wrapping `semantic-release` plugin hooks with an array of functions, they would display as `[AsyncFunction (anonymous)]` in the debug output of `semantic-release`. WIth this fix, they should show as `[AsyncFunction (semantic-release-monorepo)]`.

[Fixes #86]
  • Loading branch information
pmowrer committed Apr 5, 2020
1 parent ec77e03 commit 77c25d2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ const {

const analyzeCommits = wrapStep(
'analyzeCommits',
compose(logPluginVersion('analyzeCommits'), withOnlyPackageCommits)
compose(logPluginVersion('analyzeCommits'), withOnlyPackageCommits),
{
wrapperName: 'semantic-release-monorepo',
}
);

const generateNotes = wrapStep(
Expand All @@ -21,7 +24,10 @@ const generateNotes = wrapStep(
logPluginVersion('generateNotes'),
withOnlyPackageCommits,
withOptionsTransforms([mapNextReleaseVersion(versionToGitTag)])
)
),
{
wrapperName: 'semantic-release-monorepo',
}
);

module.exports = {
Expand Down

0 comments on commit 77c25d2

Please sign in to comment.