async function run()

in scripts/example-dot-env.ts [6:19]


async function run() {
  const git = simpleGit();

  const { current } = await git.status();
  const hash = await git.revparse('HEAD');

  const env = `
GIT_BRANCH=${current}
GIT_COMMIT=${hash}
`;

  fs.writeFileSync(path.join(__dirname, '../example/.env'), env);
  console.log(chalk.green(`wrote example .env with:\n${env}`));
}