const fs = require("fs");
const glob = require("glob");

glob("build/**/*", {}, (err, files) => {
  if (err) console.error(err);

  for (const file of files) fs.copyFileSync(file, file.replace("build/", ""));

  try {
    fs.rmdirSync("build", { force: true, recursive: true });
  } catch (e) {}
});

const fs = require("fs");
const glob = require("glob");

glob("build/**/*", {}, (err, files) => {
  if (err) console.error(err);

  for (const file of files) fs.copyFileSync(file, file.replace("build/", ""));

  try {
    fs.rmdirSync("build", { force: true, recursive: true });
  } catch (e) {}
});
