Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (!containerGenConfig || !containerGenConfig.bypassYarnLock) {
pathToYarnLock = await cauldron.getPathToYarnLock(
napDescriptor,
constants.CONTAINER_YARN_KEY
)
} else {
log.debug(
'Bypassing yarn.lock usage as bypassYarnLock flag is set in Cauldron config'
)
}
if (!napDescriptor.platform) {
throw new Error(`${napDescriptor} does not specify a platform`)
}
return kax.task('Bundling MiniApps').run(
bundleMiniApps(
miniapps,
compositeDir || createTmpDir(),
outDir,
napDescriptor.platform,
{
baseComposite,
jsApiImplDependencies: jsApiImpls,
pathToYarnLock: pathToYarnLock || undefined,
resolutions,
}
)
)
} catch (e) {
log.error(`runCauldronBundleGen failed: ${e}`)
throw e
}