This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ############################### | |
// runPackager.js | |
// ############################### | |
// In this example, the IO function is tightly coupled with the implementation | |
import { execFileSync } from 'child_process'; | |
type RunPackagerOptions = { | |
projectRoot: string, // CWD the react-native binary is being run from | |
targetDir: string, // Target directory absolute or relative to projectRoot (e.g. 'rna/') |