text: const path = require("path");
  const fs = require("fs");
  const appVersion = require("./package.json").version;
  
  console.log("\nRunning pre-build tasks");
  
  const versionFilePath = path.join(__dirname + "/src/environments/version.ts");
  
  const src = `export const version = '${appVersion}';\n`;
  
  // ensure version module pulls value from package.json
  fs.writeFile(versionFilePath, src, {flag: "w"}, (err) => {
    if (err) {
      return console.log(err);
    }
  	console.log(`Writing ${appVersion} version module to ${versionFilePath}\n`);
  });
  