MCPcopy Index your code
hub / github.com/desktop/desktop / run

Function run

script/run.ts:27–45  ·  view source on GitHub ↗
(spawnOptions: SpawnOptions)

Source from the content-addressed store, hash-verified

25}
26
27export function run(spawnOptions: SpawnOptions) {
28 try {
29 // eslint-disable-next-line no-sync
30 const stats = Fs.statSync(binaryPath)
31 if (!stats.isFile()) {
32 return null
33 }
34 } catch (e) {
35 return null
36 }
37
38 const opts = Object.assign({}, spawnOptions)
39
40 opts.env = Object.assign(opts.env || {}, process.env, {
41 NODE_ENV: 'development',
42 })
43
44 return spawn(binaryPath, [], opts)
45}

Callers 1

startAppFunction · 0.90

Calls 1

spawnFunction · 0.85

Tested by

no test coverage detected