lib/Compiler.js
/**
 * Returns the first directory where a node_modules directory exists.
 * @private
 */
Returns the first directory where a node_modules directory exists.
@private
Returns the first directory where a node_modules directory exists . @private
function basePath() {
  var _path = __dirname;
  if (_path.indexOf('node_modules/goji') !== -1) {
    while (!fs.existsSync(_path + '/node_modules') || _path.substr(-4) === 'goji') {
      _path = path.resolve(_path + '/..');
    }
  } else {
    while (!fs.existsSync(_path + '/node_modules')) {
      _path = path.resolve(_path + '/..');
    }
  }
  return _path;
}
function basePath ( ) { var _path = __dirname ; if ( _path . indexOf ( 'node_modules/goji' ) !== - 1 ) { while ( ! fs . existsSync ( _path + '/node_modules' ) || _path . substr ( - 4 ) === 'goji' ) { _path = path . resolve ( _path + '/..' ) ; } } else { while ( ! fs . existsSync ( _path + '/node_modules' ) ) { _path = path . resolve ( _path + '/..' ) ; } } return _path ; }
Returns the first directory where a node_modules directory exists.
Returns the first directory where a node_modules directory exists .