Skip to content

Commit

Permalink
perf: log yarn paths
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Mar 8, 2020
1 parent ee2ba00 commit 3896d5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions bin/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module.exports = flags => {
try {
// Get list of package.json paths according to Yarn workspaces.
const paths = getWorkspacesYarn(cwd);
console.log("yarn paths", paths);

// Do multirelease (log out any errors).
multiSemanticRelease(paths, {}, { cwd }).then(
Expand Down
6 changes: 2 additions & 4 deletions lib/createInlinePluginCreator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { writeFileSync } = require("fs");
// const { resolve } = require("path");
const { check } = require("./blork");
const wait = require("./wait");
const getCommitsFiltered = require("./getCommitsFiltered");
Expand Down Expand Up @@ -31,7 +32,7 @@ function createInlinePluginCreator(packages, multiContext) {
* @internal
*/
const updateManifestDeps = (pkg, path) => {
const dbg = debug.create("deps");
const dbg = console.log;

// Get and parse manifest file contents.
const manifest = getManifest(path);
Expand Down Expand Up @@ -212,9 +213,6 @@ function createInlinePluginCreator(packages, multiContext) {
const verifyConditions = (pluginOptions, context) => plugins.verifyConditions(context);
const verifyRelease = (pluginOptions, context) => plugins.verifyRelease(context);
const publish = async (pluginOptions, context) => {
// Prevent deps change rollback.
updateManifestDeps(pkg, path);

const result = await plugins.publish(context);
// istanbul ignore next
return result.length ? result[0] : {};
Expand Down
2 changes: 1 addition & 1 deletion lib/getLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ function getLogger({ stdout, stderr }) {
}

// Exports.
module.exports = once(getLogger);
module.exports = getLogger;

0 comments on commit 3896d5c

Please sign in to comment.