import { rmSync } from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";

const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");

for (const dir of ["build", "dist", "app_dist", "artifacts"]) {
  rmSync(path.join(rootDir, dir), { recursive: true, force: true });
}

console.log("clean: removed build, dist, app_dist, and artifacts");
