chore: 🔧 Update files

This commit is contained in:
Lilith 2026-01-14 12:03:12 -08:00
parent b744a3dd10
commit e80eb760ff

View file

@ -40,8 +40,8 @@ async function findCommitsScript(): Promise<string | null> {
* Run dev-publish after successful commit+push
*/
async function runDevPublish(cwd: string): Promise<void> {
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<void> {
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<void> {
async function runCommit(scriptPath: string, args: string[], shouldPush: boolean): Promise<void> {
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)