(appRoot: string, capCommand: string)
| 22 | } |
| 23 | |
| 24 | export async function run(appRoot: string, capCommand: string): Promise<string> { |
| 25 | return new Promise((resolve, reject) => { |
| 26 | exec(`cd "${appRoot}" && "${cwd}/bin/capacitor" ${capCommand}`, (error, stdout, stderr) => { |
| 27 | if (error) { |
| 28 | reject(stdout + stderr); |
| 29 | } else { |
| 30 | resolve(stdout); |
| 31 | } |
| 32 | }); |
| 33 | }); |
| 34 | } |
| 35 | |
| 36 | export function mktmp(): Promise<{ |
| 37 | cleanupCallback: DirCallback; |
no test coverage detected