(command: string, cwd?: string, args?: string[])
| 15 | } |
| 16 | |
| 17 | export function execFileCommand(command: string, cwd?: string, args?: string[]) { |
| 18 | const child = execFileSync(command, args, { |
| 19 | stdio: "inherit", |
| 20 | cwd: cwd ?? process.cwd(), |
| 21 | // Set CI to avoid extra NPM logs and potentially unwanted interactive modes |
| 22 | env: { |
| 23 | ...process.env, |
| 24 | // Internal flag to avoid duplicating user messages |
| 25 | SWA_CLI_INTERNAL_COMMAND: "1", |
| 26 | }, |
| 27 | }); |
| 28 | return child; |
| 29 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…