I think we can actually simplify here, since we don't do any logic in the function you have:

`fs.writeFile(absPath, exports, { encoding: "utf-8" }, callback);`

And you can delete lines 21-25.