// delete the dist folder before a new build
const { rm } = require("fs/promises");

async function main() {  
  console.log("Deleting dist folder...");
  await rm("dist", { recursive: true, force: true });
  console.log("Dist folder deleted successfully");
}

main().catch(err => {
  console.error(err);
  process.exit(1);
});