scripts/build-website.mjs/buildPlaygroundFiles
async function buildPlaygroundFiles() {
  const files = await fastGlob(["standalone.js", "parser-*.js"], {
    cwd: PRETTIER_DIR,
  });
  const parsers = {};
  for (const fileName of files) {
    const file = path.join(PRETTIER_DIR, fileName);
    await copyFile(file, path.join(PLAYGROUND_PRETTIER_DIR, fileName));

    if (fileName === "standalone.js") {
      continue;
    }

    const plugin = require(file);
    // We add plugins to the global `prettierPlugins` object
    // the name after `parser-` is used as property
    // For example to get parsers in `parser-babel.js` via `prettierPlugins.babel`
    // See `scripts/build/config.mjs`
    const property = fileName.replace(/\.js$/, "").split("-")[1];
    parsers[fileName] = {
      property,
      parsers: Object.keys(plugin.parsers),
    };
  }

  await writeFile(
    path.join(PLAYGROUND_PRETTIER_DIR, "parsers-location.js"),
    prettier.format(
      `
        "use strict";

        const parsersLocation = ${JSON.stringify(parsers)};
      `,
      { parser: "babel" }
    )
  );
}