2026-08-10 02:28:11 +08:00
|
|
|
import { rm } from "node:fs/promises";
|
|
|
|
|
import { dirname, join } from "node:path";
|
|
|
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
|
|
|
|
|
|
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
|
|
|
|
2026-10-09 19:55:09 +08:00
|
|
|
await rm(join(root, "dist"), { recursive: true, force: true });
|