Skip to content

Commit

Permalink
fix(npm-publish): Accept opts.log, defaulting to libnpm/log
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Dec 20, 2018
1 parent 97edc7e commit a1d61f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/npm-publish/npm-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const PublishConfig = figgyPudding(
{
"dry-run": { default: false },
dryRun: "dry-run",
log: { default: log },
"project-scope": {},
projectScope: "project-scope",
tag: { default: "latest" },
Expand All @@ -25,13 +26,13 @@ const PublishConfig = figgyPudding(
);

function npmPublish(pkg, tag, tarFilePath, _opts) {
log.verbose("publish", pkg.name);

const opts = PublishConfig(_opts, {
projectScope: pkg.name,
tag,
});

opts.log.verbose("publish", pkg.name);

let chain = Promise.resolve();

if (!opts.dryRun) {
Expand Down

0 comments on commit a1d61f6

Please sign in to comment.