import { promises as fs } from 'fs' ; import { buildPath } from './Utils/buildPath' ; async function build ( ) { console . log ( 'Starting build of TS-ESNode' ) ; console . info ( `Removing 'out/dist' directory` ) ; await fs . rmdir ( 'out/dist' , { recursive : true } ) ; console . info ( 'Building TS-ESNode' ) ; await Promise . all ( [ buildPath ( './' ) ] ) ; console . debug ( 'Finished Building' ) ; } build ( ) ;