import {
  Detach,
} from 'xdl';

async function action(projectDir, options) {
  await Detach.prepareDetachedBuildAsync(projectDir, options);
}

export default (program) => {
  program
    .command('prepare-detached-build [project-dir]')
    .option('--platform [platform]', 'detached project platform')
    .description('Prepares a detached project for building')
    .asyncActionProjectDir(action, true, true);
};

import {
  Detach,
} from 'xdl';

async function action(projectDir, options) {
  await Detach.prepareDetachedBuildAsync(projectDir, options);
}

export default (program) => {
  program
    .command('prepare-detached-build [project-dir]')
    .option('--platform [platform]', 'detached project platform')
    .option('--skipXcodeConfig', '[iOS only] if true, do not configure Xcode project')
    .description('Prepares a detached project for building')
    .asyncActionProjectDir(action, true, true);
};

Add `./pod-install-exponent.sh` to detached projects
Add `./pod-install-exponent.sh` to detached projects

fbshipit-source-id: 0337353
