lib/build/js/makePackages.js
function buildDep(file, pkg){
  var files = [];

  if (file.processed || file.package != pkg)
    return files;

  file.processed = true;

  for (var i = 0, depFile; depFile = file.deps[i++];)
    files.push.apply(files, buildDep(depFile, file.package));

  files.push(file);

  return files;
}
function buildDep(file, pkg){
  var files = [];

  if (file.processed || file.package != pkg)
    return files;

  file.processed = true;

  for (var i = 0, depFile; depFile = file.deps[i++];)
    files.push.apply(files, buildDep(depFile, file.package));

  files.push(file);

  return files;
}
function buildDep ( file , pkg ) { var files = [ ] ; if ( file . processed || file . package != pkg ) return files ; file . processed = true ; for ( var i = 0 , depFile ; depFile = file . deps [ i ++ ] ; ) files . push . apply ( files , buildDep ( depFile , file . package ) ) ; files . push ( file ) ; return files ; }
make require file list
make require file list