From 937b3ca29b4bd2ac88ed0a740bdbad8ad1011a93 Mon Sep 17 00:00:00 2001 From: Keiichiro Amemiya Date: Fri, 27 Dec 2024 00:08:11 +0100 Subject: [PATCH 1/2] fix(defaultconfig): correct styling of log output --- src/commands/defaultconfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/defaultconfig.ts b/src/commands/defaultconfig.ts index 8eb16b3..980f604 100644 --- a/src/commands/defaultconfig.ts +++ b/src/commands/defaultconfig.ts @@ -77,7 +77,7 @@ function action(bundleName?: string) { fs.writeFileSync(configPath, JSON.stringify(data, null, 2)); console.log( - chalk`{green Success:} Created {bold ${bundleName}}'s default config from schema\n`, + `${chalk.green("Success:")} Created ${chalk.bold("bundleName")}'s default config from schema\n`, ); } catch (e) { console.error(chalk.red("Error: ") + String(e)); From ac4d36ab4d3235ab7ba82ef5b5b8ff8f3c613bb5 Mon Sep 17 00:00:00 2001 From: Keiichiro Amemiya Date: Fri, 27 Dec 2024 00:09:51 +0100 Subject: [PATCH 2/2] oops --- src/commands/defaultconfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/defaultconfig.ts b/src/commands/defaultconfig.ts index 980f604..daa3eaf 100644 --- a/src/commands/defaultconfig.ts +++ b/src/commands/defaultconfig.ts @@ -77,7 +77,7 @@ function action(bundleName?: string) { fs.writeFileSync(configPath, JSON.stringify(data, null, 2)); console.log( - `${chalk.green("Success:")} Created ${chalk.bold("bundleName")}'s default config from schema\n`, + `${chalk.green("Success:")} Created ${chalk.bold(bundleName)}'s default config from schema\n`, ); } catch (e) { console.error(chalk.red("Error: ") + String(e));