src/paths/multiResolver.js
function getConfigSettings(packageJsonFile) {
  // Locate and read package.json
  const pkg = JSON.parse(fs.readFileSync(packageJsonFile));

  return {
    searchDir:
      getConfigSetting(pkg, 'searchDir', true) || getDefaultValue('searchDir'),
    outputFile:
      getConfigSetting(pkg, 'outputFile') || getDefaultValue('outputFile'),
    pattern: getConfigSetting(pkg, 'pattern') || getDefaultValue('pattern'),
  };
}
function getConfigSettings(packageJsonFile) {
  // Locate and read package.json
  const pkg = JSON.parse(fs.readFileSync(packageJsonFile));

  return {
    searchDir:
      getConfigSetting(pkg, 'searchDir', true) || getDefaultValue('searchDir'),
    outputFile:
      getConfigSetting(pkg, 'outputFile') || getDefaultValue('outputFile'),
    pattern: getConfigSetting(pkg, 'pattern') || getDefaultValue('pattern'),
  };
}
function getConfigSettings ( packageJsonFile ) { // Locate and read package.json const pkg = JSON . parse ( fs . readFileSync ( packageJsonFile ) ) ; return { searchDir : getConfigSetting ( pkg , 'searchDir' , true ) || getDefaultValue ( 'searchDir' ) , outputFile : getConfigSetting ( pkg , 'outputFile' ) || getDefaultValue ( 'outputFile' ) , pattern : getConfigSetting ( pkg , 'pattern' ) || getDefaultValue ( 'pattern' ) , } ; }
Parses the package.json file and returns a config object
@param {string} packageJsonFile Path to the package.json file
Parses the package . json file and returns a config object