From 77c25d226458a5bf48f3c43418fad8131c4c357e Mon Sep 17 00:00:00 2001 From: Patrick Mowrer Date: Sun, 5 Apr 2020 15:25:18 -0400 Subject: [PATCH] fix: show library name in `semantic-release` debug output 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] --- src/index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 81ce7bf..27e202a 100644 --- a/src/index.js +++ b/src/index.js @@ -12,7 +12,10 @@ const { const analyzeCommits = wrapStep( 'analyzeCommits', - compose(logPluginVersion('analyzeCommits'), withOnlyPackageCommits) + compose(logPluginVersion('analyzeCommits'), withOnlyPackageCommits), + { + wrapperName: 'semantic-release-monorepo', + } ); const generateNotes = wrapStep( @@ -21,7 +24,10 @@ const generateNotes = wrapStep( logPluginVersion('generateNotes'), withOnlyPackageCommits, withOptionsTransforms([mapNextReleaseVersion(versionToGitTag)]) - ) + ), + { + wrapperName: 'semantic-release-monorepo', + } ); module.exports = {