From 9f7d447bc74f6131d74c041b992efaa472a06c55 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 27 Oct 2024 02:13:12 +0200 Subject: [PATCH] fix(format): Add logging for tsconfig.json formatting --- changelog.md | 5 +++++ ts/00_commitinfo_data.ts | 2 +- ts/mod_format/format.tsconfig.ts | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index aa3064c..5cda1e9 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2024-10-27 - 1.10.2 - fix(format) +Add logging for tsconfig.json formatting + +- Added an info log message for tsconfig.json formatting in format.tsconfig.ts. + ## 2024-10-27 - 1.10.1 - fix(format) Fixed async issue in tsconfig module lookup and corrected property access diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index c336cfd..a3af8a6 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.1', + version: '1.10.2', 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 537b8a0..8757d26 100644 --- a/ts/mod_format/format.tsconfig.ts +++ b/ts/mod_format/format.tsconfig.ts @@ -6,6 +6,7 @@ import { Project } from '../classes.project.js'; export const run = async (projectArg: Project) => { // lets care about tsconfig.json + logger.log('info', 'Formatting tsconfig.json...'); const tsconfigSmartfile = await plugins.smartfile.SmartFile.fromFilePath(plugins.path.join(paths.cwd, 'tsconfig.json')); const tsconfigObject = JSON.parse(tsconfigSmartfile.contentBuffer.toString()); tsconfigObject.compilerOptions = tsconfigObject.compilerOptions || {};