old_contents: /**
   * Config
   *
   * Loads config for `rnpm` to use by projects.
   *
   * In order to override default settings, simply mirror them under `rnpm` key in your
   * package.json.
   *
   * In order to make `rnpm` ignore certain targets, simply set them to `false`. Otherwise,
   * there will be warnings.
   *
   * It optionally accepts packageName - when it's present, config will be loaded from node_modules/packageName
   */
  
  const log = require('npmlog');
  const efs = require('./utils/fs');
  const transform = require('lodash.transform');
  const path = require('path');
  
  const androidConfig = require('./android/defaultConfig');
  const iosConfig = require('./ios/defaultConfig');
  
  /**
   * Gets rnpm config from reading it from JSON (for now)
   */
  const getRNPMConfig = function getRNPMConfig(folder) {
    const pjson = efs.requireFile(path.join(folder, './package.json'));
  
    if (!pjson) {
      return log.warn('EPACKAGEJSON', `Not found. Are you sure it's a React Native project?`);
    }
  
    return pjson.rnpm || {};
  };
  
  /**
   * Returns project config for current working directory
   */
  exports.getProjectConfig = function getProjectConfig() {
    const folder = process.cwd();
    const rnpm = getRNPMConfig(folder);
  
    return {
      ios: iosConfig.defaultProject(folder, rnpm.ios || {}),
      android: androidConfig.defaultProject(folder, rnpm.android || {}),
    };
  };
  
  /**
   * Returns dependency config for a dependency located under node_modules/<package_name>
   */
  exports.getDependencyConfig = function getDependencyConfig(packageName) {
    const folder = path.join(process.cwd(), 'node_modules', packageName);
    const rnpm = getRNPMConfig(folder);
  
    return {
      ios: iosConfig.defaultDependency(folder, rnpm.ios || {}),
      android: androidConfig.defaultDependency(folder, rnpm.android || {}),
    };
  };
  
new_contents: /**
   * Config
   *
   * Loads config for `rnpm` to use by projects.
   *
   * In order to override default settings, simply mirror them under `rnpm` key in your
   * package.json.
   *
   * In order to make `rnpm` ignore certain targets, simply set them to `false`. Otherwise,
   * there will be warnings.
   *
   * It optionally accepts packageName - when it's present, config will be loaded from node_modules/packageName
   */
  
  const log = require('npmlog');
  const efs = require('./utils/fs');
  const transform = require('lodash.transform');
  const path = require('path');
  
  const androidConfig = require('./android/defaultConfig');
  const iosConfig = require('./ios/defaultConfig');
  
  /**
   * Gets rnpm config from reading it from JSON (for now)
   */
  const getRNPMConfig = function getRNPMConfig(folder) {
    const pjson = efs.requireFile(path.join(folder, './package.json'));
  
    if (!pjson) {
      return log.warn('EPACKAGEJSON', `Not found. Are you sure it's a React Native project?`);
    }
  
    return pjson.rnpm || {};
  };
  
  /**
   * Returns project config for current working directory
   */
  exports.getProjectConfig = function getProjectConfig() {
    const folder = process.cwd();
    const rnpm = getRNPMConfig(folder);
  
    // No package.json
    if (!rnpm) {
      return null;
    }
  
    return {
      ios: iosConfig.defaultProject(folder, rnpm.ios || {}),
      android: androidConfig.defaultProject(folder, rnpm.android || {}),
    };
  };
  
  /**
   * Returns dependency config for a dependency located under node_modules/<package_name>
   */
  exports.getDependencyConfig = function getDependencyConfig(packageName) {
    const folder = path.join(process.cwd(), 'node_modules', packageName);
    const rnpm = getRNPMConfig(folder);
  
    // No package.json
    if (!rnpm) {
      return null;
    }
  
    return {
      ios: iosConfig.defaultDependency(folder, rnpm.ios || {}),
      android: androidConfig.defaultDependency(folder, rnpm.android || {}),
    };
  };
  
subject: Fix if statement