From 3c5a8282ab178d0fcb109d7661071c113d3dc2d8 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 27 Oct 2024 02:09:04 +0200 Subject: [PATCH] fix(format): Fixed async issue in tsconfig module lookup and corrected property access --- changelog.md | 4 ++++ ts/00_commitinfo_data.ts | 2 +- ts/mod_format/format.tsconfig.ts | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 4dde196..aa3064c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +## 2024-10-27 - 1.10.1 - fix(format) +Fixed async issue in tsconfig module lookup and corrected property access + + ## 2024-10-27 - 1.10.0 - feat(mod_format) Add support for tsconfig.json formatting diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 2a38d06..c336cfd 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/cli', - version: '1.10.0', + version: '1.10.1', description: 'A CLI toolbelt to streamline local development cycles by using various gitzone utilities.' } diff --git a/ts/mod_format/format.tsconfig.ts b/ts/mod_format/format.tsconfig.ts index 54dc8b3..537b8a0 100644 --- a/ts/mod_format/format.tsconfig.ts +++ b/ts/mod_format/format.tsconfig.ts @@ -13,10 +13,10 @@ export const run = async (projectArg: Project) => { tsconfigObject.compilerOptions.paths = {}; const tsPublishMod = await import('@git.zone/tspublish'); const tsPublishInstance = new tsPublishMod.TsPublish(); - const publishModules = tsPublishInstance.getModuleSubDirs(paths.cwd); + const publishModules = await tsPublishInstance.getModuleSubDirs(paths.cwd); for (const publishModule of Object.keys(publishModules)) { const publishConfig = publishModules[publishModule]; - tsconfigObject.compilerOptions.paths[`${publishConfig.moduleName}`] = [`./${publishModule}/index.ts`]; + tsconfigObject.compilerOptions.paths[`${publishConfig.name}`] = [`./${publishModule}/index.ts`]; } tsconfigSmartfile.setContentsFromString(JSON.stringify(tsconfigObject, null, 2)); await tsconfigSmartfile.write();