text: const fs = require('fs');
  
  const writeFile = fileContent => {
      return new Promise((resolve, reject) => {
          fs.writeFile('./dist/README.md', fileContent, err => {
              // if there's an error, reject the Promise and send the error to the .catch()
              if (err) {
                  reject(err); 
                  // return out of the function here to make sure the Promise doesn't execute the resolve() function
                  return;
              }
  
              // if everything went well, resolve Promise
              resolve({
                  ok: true,
                  message: 'File created!'
              });
          });
      });
  };
  
  module.exports = { writeFile };