(args: readonly string[], options: RunCommandOptions = {})
| 10 | import type { RunCommandOptions } from './subprocess'; |
| 11 | |
| 12 | export async function runNativeRun(args: readonly string[], options: RunCommandOptions = {}): Promise<string> { |
| 13 | const p = resolveNode(__dirname, dirname('native-run/package'), 'bin/native-run'); |
| 14 | |
| 15 | if (!p) { |
| 16 | fatal(`${c.input('native-run')} not found.`); |
| 17 | } |
| 18 | |
| 19 | if (process.versions.pnp) { |
| 20 | return await runCommand('yarn', ['node', p, ...args], options); |
| 21 | } else { |
| 22 | return await runCommand(p, args, options); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | export async function getPlatformTargets(platformName: string): Promise<PlatformTarget[]> { |
| 27 | const errors = []; |
no test coverage detected