INNER CODE UNIT · JavaScript

runCommand

reactnativecn/react-native-update · scripts/build-harmony-har.js:431

function runCommand(command, commandArgs, options) {
  const { cwd, env, label } = options;
  console.log(`> ${label}`);
  console.log(`  ${[command, ...commandArgs].join(' ')}`);

  const result = spawnSync(command, commandArgs, {
    cwd,
    env,
    stdio: 'inherit',
  });

  if (result.status !== 0) {
    fail(`${label} failed with exit code ${result.status || 1}.`);
  }
}

function findNewestHar(rootDir) {
  if (!fs.existsSync(rootDir)) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…