tooling/lib/dependencies.js
function requireToPackage(d) {
  d = d.split('/');
  if (d[0].startsWith('@')) {
    return d.slice(0, 2).join('/');
  }

  return d[0];
}
function requireToPackage(d) {
  d = d.split('/');
  if (d[0].startsWith('@')) {
    return d.slice(0, 2).join('/');
  }

  return d[0];
}
function requireToPackage ( d ) { d = d . split ( '/' ) ; if ( d [ 0 ] . startsWith ( '@' ) ) { return d . slice ( 0 , 2 ) . join ( '/' ) ; } return d [ 0 ] ; }
Translates a required filename into a package name
@param {strig} d
@returns {string}
Translates a required filename into a package name