in cmds/package.js [222:237]
function findConfigFile(dirPath) {
logger.debug('Looking for', configFile, 'in', dirPath);
var filePath = path.join(dirPath, configFile);
if(fs.existsSync(filePath)) {
logger.debug('Found', filePath);
return filePath;
} else {
var parentPath = path.resolve(dirPath, '..');
if(parentPath && parentPath != dirPath) {
return findConfigFile(parentPath);
}
}
logger.warn('Unable to find',configFile);
return undefined;
}