clean-chrome-dist.mjs
1import { existsSync, rmSync } from "node:fs";2import path from "node:path";3import { fileURLToPath } from "node:url";45const __filename = fileURLToPath(import.meta.url);6const __dirname = path.dirname(__filename);7const rootDir = path.resolve(__dirname, "..");89const dir = "dist-chrome";10const target = path.join(rootDir, dir);11if (existsSync(target)) {12 rmSync(target, { recursive: true, force: true });13 console.log(`Cleaned ${dir}`);14}