(cmd: string[])
| 50 | ] as const |
| 51 | |
| 52 | function runCommand(cmd: string[]): string | null { |
| 53 | const proc = Bun.spawnSync({ |
| 54 | cmd, |
| 55 | cwd: process.cwd(), |
| 56 | stdout: 'pipe', |
| 57 | stderr: 'pipe', |
| 58 | }) |
| 59 | |
| 60 | if (proc.exitCode !== 0) { |
| 61 | return null |
| 62 | } |
| 63 | |
| 64 | return new TextDecoder().decode(proc.stdout).trim() || null |
| 65 | } |
| 66 | |
| 67 | function getDevVersion(baseVersion: string): string { |
| 68 | const timestamp = new Date().toISOString() |
no outgoing calls
no test coverage detected