View hard-dependency.js
// ############################### | |
// 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/') |