Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
})
const pathToRunner = path.join(cwd, platform)
if (!fs.existsSync(pathToRunner)) {
shell.mkdir('-p', pathToRunner)
await spin(`Generating ${platform} Runner project`,
generateRunnerProject(
platform,
pathToRunner,
path.join(Platform.rootDirectory, 'containergen'),
entryMiniAppName,
{ reactNativeDevSupportEnabled: dev }))
} else {
await spin(`Regenerating ${platform} Runner Configuration`,
regenerateRunnerConfig(
platform,
pathToRunner,
path.join(Platform.rootDirectory, 'containergen'),
entryMiniAppName,
{ reactNativeDevSupportEnabled: dev }))
}
await launchRunner(platform, pathToRunner)
}