fix(core): Add logging for found publish modules
This commit is contained in:
parent
4ee31f85ab
commit
9a89b63cf9
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# 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)
|
## 2024-10-28 - 1.5.1 - fix(core)
|
||||||
Fixes handling of undefined paths in tsconfig generation.
|
Fixes handling of undefined paths in tsconfig generation.
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tspublish',
|
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.'
|
description: 'A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.'
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,8 @@ export class TsPublish {
|
|||||||
|
|
||||||
public async publish (monorepoDirArg: string) {
|
public async publish (monorepoDirArg: string) {
|
||||||
const publishModules = await this.getModuleSubDirs(monorepoDirArg);
|
const publishModules = await this.getModuleSubDirs(monorepoDirArg);
|
||||||
|
console.log(`Found ${publishModules.length} publish modules:`);
|
||||||
|
console.log(publishModules);
|
||||||
for (const publishModule of Object.keys(publishModules)) {
|
for (const publishModule of Object.keys(publishModules)) {
|
||||||
const publishModuleInstance = new PublishModule({
|
const publishModuleInstance = new PublishModule({
|
||||||
monoRepoDir: monorepoDirArg,
|
monoRepoDir: monorepoDirArg,
|
||||||
|
@ -4,6 +4,7 @@ import { TsPublish } from './classes.tspublish.js';
|
|||||||
export * from './classes.tspublish.js'
|
export * from './classes.tspublish.js'
|
||||||
|
|
||||||
export const runCli = async () => {
|
export const runCli = async () => {
|
||||||
|
console.log('Starting tspublish...');
|
||||||
const tspublish = new TsPublish();
|
const tspublish = new TsPublish();
|
||||||
await tspublish.publish(paths.cwd);
|
await tspublish.publish(paths.cwd);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user