From 9167f5234958904d72fbd34a7d71d7a4484dfdb0 Mon Sep 17 00:00:00 2001 From: Sushant Ray Date: Sun, 5 Apr 2026 18:58:21 +0545 Subject: [PATCH 1/2] chore: update target to esnext --- tsconfig.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 4f4fb95..15c293f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es6", + "target": "esnext", "module": "commonjs", "outDir": "./lib", "rootDir": "./src", @@ -12,6 +12,11 @@ "forceConsistentCasingInFileNames": true, "skipLibCheck": true }, - "include": ["src/**/*"], - "exclude": ["node_modules", "**/__tests__/*"] + "include": [ + "src/**/*" + ], + "exclude": [ + "node_modules", + "**/__tests__/*" + ] } From 60e6cd724796af1358db086288d4fa609b2563bc Mon Sep 17 00:00:00 2001 From: Sushant Ray Date: Sun, 5 Apr 2026 19:00:29 +0545 Subject: [PATCH 2/2] fix(logger): update timestamp to generate on each call - move the timestamp generator inside the function block on each logger. I'm not sure why it existed outside it in the first place... hoping this doesn't break anything else lol. --- src/logger/error.ts | 3 +-- src/logger/info.ts | 2 +- src/logger/success.ts | 2 +- src/logger/warn.ts | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/logger/error.ts b/src/logger/error.ts index fd7a55e..5d88858 100644 --- a/src/logger/error.ts +++ b/src/logger/error.ts @@ -3,9 +3,8 @@ import { StatusType } from '../typings/LoggerTypes'; import { ConfigType } from '../setWizardConfig'; import { getConfig } from '../helpers/getConfig'; -const timestamp = `[${getTimestamp()}]`; - export const error = (message: string, userConfigOverride?: ConfigType): string => { + const timestamp = `[${getTimestamp()}]`; const statusType: StatusType = 'error'; const config = getConfig(userConfigOverride); diff --git a/src/logger/info.ts b/src/logger/info.ts index b667718..8a99af4 100644 --- a/src/logger/info.ts +++ b/src/logger/info.ts @@ -3,9 +3,9 @@ import { getConfig } from '../helpers/getConfig'; import { StatusType } from '../typings/LoggerTypes'; import { ConfigType } from '../setWizardConfig'; -const timestamp = `[${getTimestamp()}]`; export const info = (message: string, userConfigOverride?: ConfigType): string => { + const timestamp = `[${getTimestamp()}]`; const statusType: StatusType = 'info'; const config = getConfig(userConfigOverride); diff --git a/src/logger/success.ts b/src/logger/success.ts index c7c6e9c..fcfda06 100644 --- a/src/logger/success.ts +++ b/src/logger/success.ts @@ -3,9 +3,9 @@ import { getConfig } from '../helpers/getConfig'; import { StatusType } from '../typings/LoggerTypes'; import { ConfigType } from '../setWizardConfig'; -const timestamp = `[${getTimestamp()}]`; export const success = (message: string, userConfigOverride?: ConfigType): string => { + const timestamp = `[${getTimestamp()}]`; const statusType: StatusType = 'success'; const config = getConfig(userConfigOverride); diff --git a/src/logger/warn.ts b/src/logger/warn.ts index f7c3339..d5e880d 100644 --- a/src/logger/warn.ts +++ b/src/logger/warn.ts @@ -3,9 +3,8 @@ import { getConfig } from '../helpers/getConfig'; import { StatusType } from '../typings/LoggerTypes'; import { ConfigType } from '../setWizardConfig'; -const timestamp = `[${getTimestamp()}]`; - export const warn = (message: string, userConfigOverride?: ConfigType): string => { +const timestamp = `[${getTimestamp()}]`; const statusType: StatusType = 'warn'; const config = getConfig(userConfigOverride);