INNER CODE UNIT · JavaScript

ensureWrapperProject

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

function ensureWrapperProject() {
  wrapperProjectFiles.forEach((relativePath) => {
    const fullPath = path.join(wrapperProjectDir, relativePath);
    ensureFileExists(
      fullPath,
      `Missing Harmony wrapper file: ${relativeToProject(fullPath)}`
    );
  });
}

function parseArgs(argv) {
  const parsed = {};

  for (let index = 0; index < argv.length; index += 1) {
    const token = argv[index];
    if (!token.startsWith('--')) {
      fail(`Unsupported argument: ${token}`);
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…