fix(tspublish): Fix the logging of the number of found publish modules

This commit is contained in:
Philipp Kunz 2024-11-05 01:52:26 +01:00
parent 910cb4c8bf
commit f8ceff48b2
3 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,10 @@
# Changelog
## 2024-11-05 - 1.7.6 - fix(tspublish)
Fix the logging of the number of found publish modules
- Corrected the way the number of publish modules is logged by using Object.keys(publishModules).length instead of publishModules.length.
## 2024-11-05 - 1.7.5 - fix(core)
Fix issue with tspublish.json name validation in TsPublish class

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tspublish',
version: '1.7.5',
version: '1.7.6',
description: 'A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.'
}

View File

@ -51,7 +51,7 @@ export class TsPublish {
plugins.smartfile.fs.toStringSync(plugins.path.join(subDir, 'tspublish.json')),
);
}
logger.log('ok', `found ${publishModules.length} publish modules`);
logger.log('ok', `found ${Object.keys(publishModules).length} publish modules`);
logger.log('info', `Ordering publish modules...`);
return publishModules;