code: function _findFile(filename) {
    var cwd = process.cwd();
    var parts = cwd.split(_path2.default.sep);
    do {
      var loc = parts.join(_path2.default.sep);
      if (!loc) break;
  
      var file = _path2.default.join(loc, filename);
      if (_fs2.default.existsSync(file)) {
        var fileObj = undefined;
        try {
          fileObj = require(file);
        } catch (e) {
          fileObj = _loadJSON(file);
        }
        return fileObj;
      }
  
      parts.pop();
    } while (parts.length);
  
    return null;
  }
docs: PRIVATE HELPER FUNCTIONS
   Find a "require" a JSON configuration given the filename