From e80eb760ffb9da3cfa9b962aeec7f04efe326238 Mon Sep 17 00:00:00 2001 From: Lilith Date: Wed, 14 Jan 2026 12:03:12 -0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=94=A7=20Update=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/commit.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/commands/commit.ts b/src/commands/commit.ts index 7a9f7b9..5d8072d 100644 --- a/src/commands/commit.ts +++ b/src/commands/commit.ts @@ -40,8 +40,8 @@ async function findCommitsScript(): Promise { * Run dev-publish after successful commit+push */ async function runDevPublish(cwd: string): Promise { - return new Promise((resolve, reject) => { - console.log(colors.blue('\n[bitch] Running dev-publish...')) + return new Promise((resolve) => { + console.log(colors.info('\n[bitch] Running dev-publish...')) // Find dev-publish wrapper script const devPublishScript = join(cwd, '../../scripts/publishing/dev-publish.sh') @@ -53,16 +53,16 @@ async function runDevPublish(cwd: string): Promise { child.on('close', (code) => { if (code === 0) { - console.log(colors.green('[bitch] Dev version published successfully')) + console.log(colors.success('[bitch] Dev version published successfully')) resolve() } else { - console.log(colors.yellow(`[bitch] Dev-publish exited with code ${code}`)) + console.log(colors.warning(`[bitch] Dev-publish exited with code ${code}`)) resolve() // Don't fail the whole command } }) child.on('error', (err) => { - console.log(colors.yellow(`[bitch] Dev-publish error: ${err.message}`)) + console.log(colors.warning(`[bitch] Dev-publish error: ${err.message}`)) resolve() // Don't fail the whole command }) }) @@ -74,7 +74,7 @@ async function runDevPublish(cwd: string): Promise { async function runCommit(scriptPath: string, args: string[], shouldPush: boolean): Promise { const cwd = process.cwd() - return new Promise((resolve, reject) => { + return new Promise(() => { const child = spawn('bash', [scriptPath, 'commit', ...args], { stdio: 'inherit', env: process.env, @@ -87,7 +87,7 @@ async function runCommit(scriptPath: string, args: string[], shouldPush: boolean await runDevPublish(cwd) } catch (err) { // Dev-publish failure shouldn't fail the commit - console.log(colors.yellow('[bitch] Dev-publish failed, but commit succeeded')) + console.log(colors.warning('[bitch] Dev-publish failed, but commit succeeded')) } } process.exit(code || 0)