Skip to content

Commit

Permalink
fix: Use semantic-release's logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-mitchell committed Nov 12, 2020
1 parent ec4d907 commit aef1b30
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ function getChildPlugin(registryName) {
return plugin;
}

function log({ stdout }, message) {
return new Promise(resolve => stdout.write(message + '\n', resolve));
}

function createCallbackWrapper(callbackName) {
return async ({ registries, ...pluginConfig }, context) => {
for (const [registryName, childConfig] of Object.entries(
Expand All @@ -33,8 +29,7 @@ function createCallbackWrapper(callbackName) {
return;
}

await log(
context,
context.logger.log(
`Performing ${callbackName} for registry ${registryName}`
);

Expand Down

0 comments on commit aef1b30

Please sign in to comment.