From 9a89b63cf9c766bc39047800300d320f509d1269 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 28 Oct 2024 01:27:00 +0100 Subject: [PATCH] fix(core): Add logging for found publish modules --- changelog.md | 6 ++++++ ts/00_commitinfo_data.ts | 2 +- ts/classes.tspublish.ts | 2 ++ ts/index.ts | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index f9dc1cb..cf8d356 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2024-10-28 - 1.5.2 - fix(core) +Add logging for found publish modules + +- Added console logging to display the count and list of discovered publish modules during the publish process. +- Included a startup log message indicating the beginning of the tspublish process. + ## 2024-10-28 - 1.5.1 - fix(core) Fixes handling of undefined paths in tsconfig generation. diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 0a75f53..de551a7 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.5.1', + version: '1.5.2', 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 509de2f..b47f7e8 100644 --- a/ts/classes.tspublish.ts +++ b/ts/classes.tspublish.ts @@ -9,6 +9,8 @@ export class TsPublish { public async publish (monorepoDirArg: string) { const publishModules = await this.getModuleSubDirs(monorepoDirArg); + console.log(`Found ${publishModules.length} publish modules:`); + console.log(publishModules); for (const publishModule of Object.keys(publishModules)) { const publishModuleInstance = new PublishModule({ monoRepoDir: monorepoDirArg, diff --git a/ts/index.ts b/ts/index.ts index 7942ca6..a51c605 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -4,6 +4,7 @@ import { TsPublish } from './classes.tspublish.js'; export * from './classes.tspublish.js' export const runCli = async () => { + console.log('Starting tspublish...'); const tspublish = new TsPublish(); await tspublish.publish(paths.cwd); }