import * as fs from 'fs-extra' ; export const emitFile = ( distDir , fileName , fileBody ) => { if ( ! fs . existsSync ( distDir ) ) { fs . mkdirsSync ( distDir ) ; } fs . writeFileSync ( fileName , fileBody ) ; } ;