in generator/specs.ts [30:47]
export async function generateBasePaths(localPath: string) {
const specsPath = path.join(localPath, 'specification');
const filePaths = await findRecursive(specsPath, filePath => {
if (path.basename(filePath) !== 'readme.md') {
return false;
}
return filePath
.split(path.sep)
.some(parent => parent == 'resource-manager');
});
return filePaths
.map(p => p.substring(0, p.lastIndexOf(path.sep)))
.map(getBasePathString.bind(null, localPath))
.filter(p => !isExcludedBasePath(p));
}