(opts: StartDaemonBackgroundOptions)
| 132 | * Does not wait for the daemon to be ready. |
| 133 | */ |
| 134 | export function startDaemonBackground(opts: StartDaemonBackgroundOptions): void { |
| 135 | const daemonPath = getDaemonExecutablePath(); |
| 136 | |
| 137 | const child = spawn(process.execPath, [daemonPath], { |
| 138 | detached: true, |
| 139 | stdio: 'ignore', |
| 140 | cwd: opts.workspaceRoot, |
| 141 | env: { |
| 142 | ...process.env, |
| 143 | ...opts.env, |
| 144 | XCODEBUILDMCP_SOCKET: opts.socketPath, |
| 145 | XCODEBUILDCLI_SOCKET: opts.socketPath, |
| 146 | }, |
| 147 | }); |
| 148 | |
| 149 | child.unref(); |
| 150 | } |
| 151 | |
| 152 | export interface WaitForDaemonReadyOptions { |
| 153 | socketPath: string; |
no test coverage detected