diff --git a/cli/src/util/native-run.ts b/cli/src/util/native-run.ts index acaca2c6c..7ca81f9e4 100644 --- a/cli/src/util/native-run.ts +++ b/cli/src/util/native-run.ts @@ -15,7 +15,11 @@ export async function runNativeRun(args: readonly string[], options: RunCommandO fatal(`${c.input('native-run')} not found.`); } - return await runCommand(p, args, options); + if (process.versions.pnp) { + return await runCommand('yarn', ['node', p, ...args], options); + } else { + return await runCommand(p, args, options); + } } export async function getPlatformTargets(platformName: string): Promise {