import {statSync} from 'fs' export const getSize = (context: any) => async () => statSync(context.path).size