hippofish/scripts/clean-built.mjs
Laura Hausmann f282549900
refactor: Iceshrimp’s Mastodon API implementation with original extensions
Co-authored-by: Eana Hufwe <eana@1a23.com>
Co-authored-by: AkiraFukushima <h3.poteto@gmail.com>
2024-05-29 23:39:22 +09:00

29 lines
768 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, "/../built"), { recursive: true, force: true });
})();