const fs=require('fs'),path=require('path');exports.throwError=true; exports.onAfterBuild=(options,result)=>{const key=options.outputName.endsWith('beta')?'beta':'alpha'; fs.writeFileSync(path.join(result.paths.output,'target.json'),JSON.stringify({bundle:'game-'+key,entry:'ProbeEntry_'+key,otherEntry:'ProbeEntry_'+(key==='alpha'?'beta':'alpha')})); fs.writeFileSync(path.join(result.paths.output,'probe-build.json'),JSON.stringify({bundles:result.settings.assets.projectBundles,options:options.bundleConfigs},null,2)); };