import fs from "fs-extra" ; import { join } from "path" ; import signale from "signale" ; import { File } from "./template" ; param path param files export async function writeFiles ( path , files ) { for ( const file of files ) { const filePath = join ( path , file . path ) ; signale . info ( "Writing file" , filePath ) ; await fs . outputFile ( filePath , file . content ) ; } }