message: Use top level await
diff: @@ -19,18 +19,6 @@ import { packages } from "./createTypesPackages.mjs";
  const __filename = fileURLToPath(import.meta.url);
  const __dirname = dirname(__filename);
  -const verify = () => {
  - const authToken = process.env.GITHUB_TOKEN || process.env.GITHUB_API_TOKEN;
  - if (!authToken)
  - throw new Error(
  - "There isn't an ENV var set up for creating a GitHub release, expected GITHUB_TOKEN."
  - );
  -};
  -
  -const gitShowFile = (commitish, path) =>
  - execSync(`git show "${commitish}":${path}`, { encoding: "utf-8" });
  -
  -const go = async () => {
  verify();
  const uploaded = [];
  @@ -126,9 +114,7 @@ Assuming that this means we need to upload this package.`);
  }
  // Warn if we did a dry run.
  if (!process.env.NODE_AUTH_TOKEN) {
  - console.log(
  - "Did a dry run because process.env.NODE_AUTH_TOKEN is not set."
  - );
  + console.log("Did a dry run because process.env.NODE_AUTH_TOKEN is not set.");
  }
  if (uploaded.length) {
  @@ -136,7 +122,6 @@ Assuming that this means we need to upload this package.`);
  } else {
  console.log("No uploads");
  }
  -};
  async function createRelease(tag, body) {
  const authToken = process.env.GITHUB_TOKEN || process.env.GITHUB_API_TOKEN;
  @@ -158,4 +143,14 @@ async function createRelease(tag, body) {
  }
  }
  -go();
  +function verify() {
  + const authToken = process.env.GITHUB_TOKEN || process.env.GITHUB_API_TOKEN;
  + if (!authToken)
  + throw new Error(
  + "There isn't an ENV var set up for creating a GitHub release, expected GITHUB_TOKEN."
  + );
  +}
  +
  +function gitShowFile(commitish, path) {
  + return execSync(`git show "${commitish}":${path}`, { encoding: "utf-8" });
  +}
  