import { write , read , Task } from '../lib' ; export const CreateReadme = { description : 'Creating README.md file' , async run ( config , log , build ) { const readme = await read ( config . resolveFromRepo ( 'README.md' ) ) ; await write ( build . resolvePath ( 'README.txt' ) , readme . replace ( /\s##\sSnapshot\sBuilds[\s\S]*/ , '' ) ) ; } , } ;