INNER CODE UNIT · TypeScript

spawnExpoCli

expo/vscode-expo · src/expo/cli.ts:7

export async function spawnExpoCli(
  command: string,
  argsOrFlags: string[] = [],
  options: SpawnOptions = {}
) {
  const result = await spawn('npx', ['expo', command, ...argsOrFlags], {
    ...options,
    env: {
      ...process.env,
      CI: 'true', // Force Expo CLI into non-interactive mode
      EXPO_NO_TELEMETRY: 'true', // Don't wait for external services, reducing process time
    },
  });

  return result.stdout;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…