function scanProjects(rootPath) {
  const scanner = require('./project-scanner.js');

  log(text.scanning);

  const packages = scanner.scanProjects(rootPath);
  let count = 0;

  for (let name in packages) {
    const versions = Object.keys(packages[name]);
    count += versions.length;
  }

  log(text.versionsTotal(count));

  return packages;
}
// versions. Returns an object with the used version numbers of each package.
versions. Returns an object with the used version numbers of each package.
versions . Returns an object with the used version numbers of each package .
function scanProjects(rootPath) {
  const scanner = require('./project-scanner.js');
  log(text.scanning);
  const packages = scanner.scanProjects(rootPath);
  let count = 0;
  for (let name in packages) {
    const versions = Object.keys(packages[name]);
    count += versions.length;
  }
  log(text.versionsTotal(count));
  return packages;
}
function scanProjects ( rootPath ) { const scanner = require ( './project-scanner.js' ) ; log ( text . scanning ) ; const packages = scanner . scanProjects ( rootPath ) ; let count = 0 ; for ( let name in packages ) { const versions = Object . keys ( packages [ name ] ) ; count += versions . length ; } log ( text . versionsTotal ( count ) ) ; return packages ; }
versions.
versions .