import * as path from 'path' ; import * as fs from 'fs' ; export function writeHelper < T = unknown > ( file , data ) { return fs . writeFileSync ( path . join ( __dirname , `../dist/${ file }.json` ) , JSON . stringify ( data , null , 2 ) ) ; }