diff --git a/changelog.md b/changelog.md index ced079c..88ecf37 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2024-10-28 - 1.4.1 - fix(readme) +Correct async call to getModuleSubDirs in readme generation. + +- Fixed an issue with asynchronous handling in readme generation for submodules. +- Ensured that getModuleSubDirs function is called with await to handle promises properly. + ## 2024-10-28 - 1.4.0 - feat(aidocs) Added support for building readmes for sub-modules in aidocs diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 42c86c0..f8286a5 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsdoc', - version: '1.4.0', + version: '1.4.1', description: 'An advanced TypeScript documentation tool using AI to generate and enhance documentation for TypeScript projects.' } diff --git a/ts/aidocs_classes/readme.ts b/ts/aidocs_classes/readme.ts index a225ab1..2e69780 100644 --- a/ts/aidocs_classes/readme.ts +++ b/ts/aidocs_classes/readme.ts @@ -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}`);