MCPcopy Create free account
hub / github.com/TanStack/ai / spawnProcess

Function spawnProcess

examples/ts-react-native-chat/scripts/dev.mjs:260–271  ·  view source on GitHub ↗
(command, args, env, { platform, stdio } = {})

Source from the content-addressed store, hash-verified

258}
259
260export function spawnProcess(command, args, env, { platform, stdio } = {}) {
261 const spawnConfig = createSpawnConfig({
262 command,
263 args,
264 cwd: EXAMPLE_DIR,
265 env,
266 platform,
267 stdio,
268 })
269
270 return spawn(spawnConfig.command, spawnConfig.args, spawnConfig.options)
271}
272
273function killProcess(child) {
274 if (child.exitCode !== null || child.signalCode !== null) return

Callers 2

dev.test.mjsFile · 0.90
startDevFunction · 0.85

Calls 1

createSpawnConfigFunction · 0.85

Tested by

no test coverage detected