code: function resolvePaths(processDirectory, cliConfig) {
    logger.debug('resolvePaths', processDirectory, cliConfig);
  
    const overrides = cliConfig || {};
    // Locate and read package.json
    const packageJsonFile = path.resolve(
      findup.sync(processDirectory, 'package.json'),
      'package.json'
    );
    const baseDir = path.dirname(packageJsonFile);
  
    const config = Object.assign(
      {},
      getConfigSettings(packageJsonFile, baseDir),
      overrides
    );
    const outputFile = path.resolve(baseDir, config.outputFile);
  
    const outputFiles = [
      {
        outputFile,
        patterns: config.searchDir.map(dir =>
          path.resolve(baseDir, dir, config.pattern)
        ),
      },
    ];
  
    const returnValue = {
      outputFiles,
    };
    logger.debug('resolvePaths', returnValue);
    return returnValue;
  }
docs: Resolves paths and returns the following schema:
  {
  "outputFiles": [{
  "patterns":[],
  "outputFile": ""
  }, {...}]
  }
  @param {string} processDirectory directory of the currently running process