src/fs.js
function updateFile(filename, content, exists) {
	fs.mkdirpSync(path.dirname(filename));
	fs.writeFileSync(filename, content);
	log.added(`${exists ? 'Update' : 'Create'} ${filename}`);
}
function updateFile(filename, content, exists) {
	fs.mkdirpSync(path.dirname(filename));
	fs.writeFileSync(filename, content);
	log.added(`${exists ? 'Update' : 'Create'} ${filename}`);
}
function updateFile ( filename , content , exists ) { fs . mkdirpSync ( path . dirname ( filename ) ) ; fs . writeFileSync ( filename , content ) ; log . added ( ` ${ exists ? 'Update' : 'Create' } ${ filename } ` ) ; }
Write a file if the content was changed and print a message.
Write a file if the content was changed and print a message .