tooling/lib/updated.js
function fileToPackage(d) {
  debug(d);
  if (d.startsWith('packages/node_modules/')) {
    d = d.replace('packages/node_modules/', '');
    d = d.split('/');
    if (d[0].startsWith('@')) {
      return d.slice(0, 2).join('/');
    }

    return d[0];
  }

  if (d.startsWith('docs') || d.startsWith('documentation') || d.startsWith('.github') || d.endsWith('.md')) {
    return 'docs';
  }

  return 'tooling';
}
function fileToPackage(d) {
  debug(d);
  if (d.startsWith('packages/node_modules/')) {
    d = d.replace('packages/node_modules/', '');
    d = d.split('/');
    if (d[0].startsWith('@')) {
      return d.slice(0, 2).join('/');
    }

    return d[0];
  }

  if (d.startsWith('docs') || d.startsWith('documentation') || d.startsWith('.github') || d.endsWith('.md')) {
    return 'docs';
  }

  return 'tooling';
}
function fileToPackage ( d ) { debug ( d ) ; if ( d . startsWith ( 'packages/node_modules/' ) ) { d = d . replace ( 'packages/node_modules/' , '' ) ; d = d . split ( '/' ) ; if ( d [ 0 ] . startsWith ( '@' ) ) { return d . slice ( 0 , 2 ) . join ( '/' ) ; } return d [ 0 ] ; } if ( d . startsWith ( 'docs' ) || d . startsWith ( 'documentation' ) || d . startsWith ( '.github' ) || d . endsWith ( '.md' ) ) { return 'docs' ; } return 'tooling' ; }
Determines the package to which a given file belongs. Includes the meta
packages "docs" and "tooling"
@param {string} d
@private
@returns {string}
Determines the package to which a given file belongs . Includes the meta packages docs and tooling