Skip to content

Commit

Permalink
UpdatedPackagesCollector: use command.logger instead of singleton import
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Stockman committed Mar 8, 2017
1 parent 28e02a7 commit 1b89029
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/UpdatedPackagesCollector.js
@@ -1,6 +1,5 @@
import GitUtilities from "./GitUtilities";
import minimatch from "minimatch";
import logger from "./logger";
import find from "lodash/find";
import path from "path";

Expand All @@ -12,6 +11,7 @@ class Update {

export default class UpdatedPackagesCollector {
constructor(command) {
this.logger = command.logger;
this.repository = command.repository;
this.packages = command.repository.packages;
this.packageGraph = command.repository.packageGraph;
Expand All @@ -26,15 +26,15 @@ export default class UpdatedPackagesCollector {
}

collectUpdatedPackages() {
logger.info("Checking for updated packages...");
this.logger.info("Checking for updated packages...");

const hasTags = GitUtilities.hasTags();

if (hasTags) {
const tag = GitUtilities.getLastTag();
logger.info("Comparing with: " + tag);
this.logger.info("Comparing with: " + tag);
} else {
logger.info("No tags found! Comparing with initial commit.");
this.logger.info("No tags found! Comparing with initial commit.");
}

this.progressBar.init(this.packages.length);
Expand Down

0 comments on commit 1b89029

Please sign in to comment.