import { write , read , Task } from '../lib' ; export const UpdateLicenseFile = { description : 'Updating LICENSE.txt file' , async run ( config , log , build ) { const elasticLicense = await read ( config . resolveFromRepo ( 'licenses/ELASTIC-LICENSE-2.0.txt' ) ) ; log . info ( 'Copying Elastic license to LICENSE.txt' ) ; await write ( build . resolvePath ( 'LICENSE.txt' ) , elasticLicense ) ; } , } ;