in generator/specs.ts [15:28]
export function validateAndReturnReadmePath(specsPath: string, basePath: string) {
let readme = '';
if (basePath.toLowerCase().endsWith('readme.md')) {
readme = path.resolve(specsPath, basePath);
} else {
readme = path.resolve(specsPath, 'specification', basePath, 'readme.md')
}
if (!existsSync(readme)) {
throw new Error(`Unable to find a readme under '${specsPath}' for base path '${basePath}'.`);
}
return readme;
}