Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const run = async (opts) => {
const context = await getAppContext({configName:opts.config, masterIsCreated:true});
opts.config = context.config;
const bb = await getMasterApisWithFullAccess(context);
const app = bb.recordApi.getNew("/applications", "application");
app.name = opts.name;
await bb.recordApi.save(app);
await createEmtpyAppPackage(opts);
exec(`cd ${join(opts.config.latestPackagesFolder, opts.name)} && npm install`);
}