text: const child_process = require("child_process");
  const path = require("path");
  
  const CACHE_PATH = "./node_modules_cache";
  
  function runYarn(yarn, cwd, command = "") {
    child_process.execSync(yarnShellCommand(yarn, cwd, command), {
      stdio: "inherit"
    });
  }
  
  function yarnShellCommand(yarn, cwd, command = "") {
    // Don't use the shared cache or touch the lockfile.
    // See https://github.com/yarnpkg/yarn/issues/986.
    const cachePath = path.resolve(cwd, CACHE_PATH);
    return `${yarn} --cwd ${cwd} --cache-folder ${cachePath} --frozen-lockfile ${command}`;
  }
  
  module.exports = {
    runYarn,
    yarnShellCommand
  };
  