Skip to content

Commit 25a564f

Browse files
committed
chore: wip
chore: wip
1 parent 9d98563 commit 25a564f

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.stacks/core/buddy/src/commands/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function deploy(buddy: CLI) {
4242
console.log('')
4343
console.log(`👋 It appears to be your first ${italic(domain)} deployment.`)
4444
console.log('')
45-
console.log(italic('Let’s ensure your it is all connected properly.'))
45+
console.log(italic('Let’s ensure it is all connected properly.'))
4646
console.log(italic('One moment...'))
4747
console.log('')
4848

.stacks/core/cli/src/exec.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'node:process'
12
import { ExitCode } from '@stacksjs/types'
23
import type { CliOptions, StacksError, Subprocess, SyncSubprocess } from '@stacksjs/types'
34
import { type Result, err, handleError, ok } from '@stacksjs/error-handling'
@@ -30,11 +31,11 @@ export async function exec(command: string | string[], options?: CliOptions): Pr
3031
stdout: options?.stdout || 'inherit',
3132
stderr: options?.stderr || 'inherit',
3233
cwd: options?.cwd || import.meta.dir,
33-
// onExit(subprocess, exitCode, signalCode, error) {
34-
// console.log('onExit', { subprocess, exitCode, signalCode, error })
35-
// // if (exitCode !== ExitCode.Success && exitCode)
36-
// // handleError(`Failed to execute command: ${cmd.join(' ')}`)
37-
// },
34+
onExit(subprocess, exitCode, signalCode, error) {
35+
// console.log('onExit', { subprocess, exitCode, signalCode, error })
36+
if (exitCode !== ExitCode.Success && exitCode)
37+
process.exit(exitCode)
38+
},
3839
})
3940

4041
const exited = await proc.exited
@@ -71,10 +72,11 @@ export function execSync(command: string | string[], options?: CliOptions): Resu
7172
stderr: options?.stderr ?? 'inherit',
7273
cwd: options?.cwd ?? import.meta.dir,
7374
// env: { ...Bun.env, ...options?.env },
74-
// onExit(subprocess: any, exitCode: any, signalCode: any, error: any) {
75-
// if (exitCode !== ExitCode.Success)
76-
// log.error(error)
77-
// },
75+
onExit(subprocess, exitCode, signalCode, error) {
76+
// console.log('onExit', { subprocess, exitCode, signalCode, error })
77+
if (exitCode !== ExitCode.Success && exitCode)
78+
process.exit(exitCode)
79+
},
7880
})
7981

8082
if (proc.success)

0 commit comments

Comments
 (0)