[TIMOB-12169] Create build log with compilation

Resolves https://jira.appcelerator.org/browse/TIMOB-12169
`fs` is already required at the top of the file. Please replace `require('fs')` with `fs`.