Skip to content

Commit a1d61f6

Browse files
committedDec 20, 2018
fix(npm-publish): Accept opts.log, defaulting to libnpm/log
1 parent 97edc7e commit a1d61f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎utils/npm-publish/npm-publish.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const PublishConfig = figgyPudding(
1212
{
1313
"dry-run": { default: false },
1414
dryRun: "dry-run",
15+
log: { default: log },
1516
"project-scope": {},
1617
projectScope: "project-scope",
1718
tag: { default: "latest" },
@@ -25,13 +26,13 @@ const PublishConfig = figgyPudding(
2526
);
2627

2728
function npmPublish(pkg, tag, tarFilePath, _opts) {
28-
log.verbose("publish", pkg.name);
29-
3029
const opts = PublishConfig(_opts, {
3130
projectScope: pkg.name,
3231
tag,
3332
});
3433

34+
opts.log.verbose("publish", pkg.name);
35+
3536
let chain = Promise.resolve();
3637

3738
if (!opts.dryRun) {

0 commit comments

Comments
 (0)
Please sign in to comment.