in lib/multiGraphBuilder.js [108:127]
function addAppConfigDirectory(paths, api, options, applicationRoot) {
let directoryName = options.directoryName;
let key = null;
if (!directoryName && api.environment) {
key = api.environment.get('CONFIGURATION_GRAPH_DIRECTORY_KEY') || 'CONFIGURATION_GRAPH_DIRECTORY';
directoryName = api.environment.get(key);
}
if (!directoryName) {
return;
}
const dirPath = path.join(applicationRoot, directoryName);
try {
fs.statSync(dirPath);
paths.push(dirPath);
} catch (notFound) {
const error = new Error(`The configuration graph directory ${dirPath} was not found. ${key}`);
error.innerError = notFound;
throw error;
}
}