fix(core): Fix issues with path keys in tsconfig and logger setup in logging.ts.
This commit is contained in:
parent
a3226efd9a
commit
ff365ee508
@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## 2024-10-28 - 1.5.4 - fix(core)
|
||||
Fix issues with path keys in tsconfig and logger setup in logging.ts.
|
||||
|
||||
- Corrected the iteration over paths in the createTsconfigJson method of PublishModule.
|
||||
- Fixed logger setup by ensuring console is enabled in logging.ts.
|
||||
|
||||
## 2024-10-28 - 1.5.3 - fix(core)
|
||||
Fix incorrect logging and directory preparation
|
||||
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@git.zone/tspublish',
|
||||
version: '1.5.3',
|
||||
version: '1.5.4',
|
||||
description: 'A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.'
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ export class PublishModule {
|
||||
plugins.path.join(paths.cwd, 'tsconfig.json')
|
||||
);
|
||||
if (originalTsConfig?.compilerOptions?.paths) {
|
||||
for (const path of originalTsConfig.compilerOptions.paths) {
|
||||
for (const path of Object.keys(originalTsConfig.compilerOptions.paths)) {
|
||||
originalTsConfig.compilerOptions.paths[path][0] = `.${originalTsConfig.compilerOptions.paths[path][0]}`;
|
||||
}
|
||||
}
|
||||
|
@ -9,8 +9,10 @@ export class TsPublish {
|
||||
|
||||
public async publish (monorepoDirArg: string) {
|
||||
const publishModules = await this.getModuleSubDirs(monorepoDirArg);
|
||||
console.log(`Found ${Object.keys(publishModules).length} publish modules:`);
|
||||
console.log(Object.keys(publishModules));
|
||||
logger.log('info', `Found ${Object.keys(publishModules).length} publish modules:`);
|
||||
for (const publishModule of Object.keys(publishModules)) {
|
||||
logger.log('info', `Publishing module: ${publishModule} -> ${publishModules[publishModule].name}`);
|
||||
}
|
||||
for (const publishModule of Object.keys(publishModules)) {
|
||||
const publishModuleInstance = new PublishModule({
|
||||
monoRepoDir: monorepoDirArg,
|
||||
|
@ -2,3 +2,4 @@ import * as plugins from './plugins.js';
|
||||
import * as commitinfo from './00_commitinfo_data.js';
|
||||
|
||||
export const logger = plugins.smartlog.Smartlog.createForCommitinfo(commitinfo.commitinfo);
|
||||
logger.enableConsole();
|
Loading…
Reference in New Issue
Block a user