fix(core): Add logging for found publish modules

This commit is contained in:
Philipp Kunz 2024-10-28 01:27:00 +01:00
parent 4ee31f85ab
commit 9a89b63cf9
4 changed files with 10 additions and 1 deletions

View File

@ -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.

View File

@ -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.'
}

View File

@ -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,

View File

@ -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);
}