11 lines
351 B
JavaScript
11 lines
351 B
JavaScript
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)), "..");
|
|
|
|
await Promise.all([
|
|
rm(join(root, "dist"), { recursive: true, force: true }),
|
|
rm(join(root, ".cache", "tsconfig.build.tsbuildinfo"), { force: true }),
|
|
]);
|