in tasks/generate-license-data.js [132:144]
function nodeTreeWalkUp(path, name) {
// check if walk is needed
if (nodePackageExists(path, name)) {
return path;
}
while (path.lastIndexOf('/node_modules') != -1) {
path = path.substr(0, path.lastIndexOf('/node_modules'));
if (nodePackageExists(path, name)) {
return path;
}
}
return undefined;
}