fix(readme): Correct async call to getModuleSubDirs in readme generation.

This commit is contained in:
2024-10-28 21:20:50 +01:00
parent e8608b1cae
commit 2adb4e8cb0
3 changed files with 8 additions and 2 deletions

View File

@ -83,7 +83,7 @@ The Readme should follow the following template:
// lets care about monorepo aspects
const tsPublishInstance = new plugins.tspublish.TsPublish();
const subModules = tsPublishInstance.getModuleSubDirs(paths.cwd);
const subModules = await tsPublishInstance.getModuleSubDirs(paths.cwd);
logger.log('info', `Found ${Object.keys(subModules).length} sub modules`);
for (const subModule of Object.keys(subModules)) {
logger.log('info', `Building readme for ${subModule}`);