hippofish/scripts/clean-built.mjs
2024-02-13 22:23:43 +09:00

33 lines
867 B
JavaScript

import fs from "node:fs";
import path, { join } from "node:path";
import { fileURLToPath } from "node:url";
(async () => {
const __dirname = path.dirname(fileURLToPath(import.meta.url));
fs.rmSync(join(__dirname, "/../packages/backend/built"), {
recursive: true,
force: true,
});
fs.rmSync(join(__dirname, "/../packages/backend-rs/built"), {
recursive: true,
force: true,
});
fs.rmSync(join(__dirname, "/../packages/client/built"), {
recursive: true,
force: true,
});
fs.rmSync(join(__dirname, "/../packages/sw/built"), {
recursive: true,
force: true,
});
fs.rmSync(join(__dirname, "/../packages/firefish-js/built"), {
recursive: true,
force: true,
});
fs.rmSync(join(__dirname, "/../packages/megalodon/lib"), {
recursive: true,
force: true,
});
fs.rmSync(join(__dirname, "/../built"), { recursive: true, force: true });
})();