mirror of
https://github.com/simstudioai/sim.git
synced 2026-11-01 21:32:00 +08:00
* feat(setup): publish standalone self-hosting package * fix(setup): refresh discovered compose installs * improvement(setup): unify repository command * fix(setup): harden standalone package launch * Update README.md * fix(setup): isolate standalone compose installs * fix(setup): restore default stopped installs
9 lines
364 B
TypeScript
9 lines
364 B
TypeScript
import { spawnSync } from 'node:child_process'
|
|
|
|
/** Checks executable resolution without depending on a shell or Bun runtime. */
|
|
export function executableExists(command: string): boolean {
|
|
const result = spawnSync(command, ['--version'], { stdio: 'ignore' })
|
|
if (!result.error) return true
|
|
return (result.error as NodeJS.ErrnoException).code !== 'ENOENT'
|
|
}
|