( command: string, args: string[], cwd: string, env: NodeJS.ProcessEnv, label: string )
| 334 | } |
| 335 | |
| 336 | async function runCommand( |
| 337 | command: string, |
| 338 | args: string[], |
| 339 | cwd: string, |
| 340 | env: NodeJS.ProcessEnv, |
| 341 | label: string |
| 342 | ): Promise<void> { |
| 343 | try { |
| 344 | await execFileAsync(command, args, { |
| 345 | cwd, |
| 346 | env, |
| 347 | encoding: 'utf8', |
| 348 | timeout: COMMAND_TIMEOUT_MS, |
| 349 | maxBuffer: 20 * 1024 * 1024 |
| 350 | }) |
| 351 | } catch (err) { |
| 352 | throw new Error(`${label} failed.${formatProcessError(err)}`) |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | async function runRaycastDevelopmentImport( |
| 357 | npmPath: string, |
no test coverage detected