From f8ceff48b20e9240034775a5b3e3240eee2edd9d Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 5 Nov 2024 01:52:26 +0100 Subject: [PATCH] fix(tspublish): Fix the logging of the number of found publish modules --- changelog.md | 5 +++++ ts/00_commitinfo_data.ts | 2 +- ts/classes.tspublish.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 76c5b84..2c439f9 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 1e4de6e..08ec584 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -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.' } diff --git a/ts/classes.tspublish.ts b/ts/classes.tspublish.ts index dabbccb..97cd3fd 100644 --- a/ts/classes.tspublish.ts +++ b/ts/classes.tspublish.ts @@ -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;