magnetar/fe_calckey/frontend/scripts/clean.js

31 lines
842 B
JavaScript
Raw Normal View History

2024-04-08 01:10:23 +00:00
import fs from "node:fs";
import path from "node:path";
const __dirname = import.meta.dirname;
2023-07-07 19:22:30 +00:00
(async () => {
2024-04-08 01:10:23 +00:00
fs.rmSync(path.join(__dirname, "/../packages/backend/built"), {
recursive: true,
force: true,
});
fs.rmSync(path.join(__dirname, "/../packages/backend/native-utils/built"), {
recursive: true,
force: true,
});
fs.rmSync(path.join(__dirname, "/../packages/client/built"), {
recursive: true,
force: true,
});
fs.rmSync(path.join(__dirname, "/../packages/sw/built"), {
recursive: true,
force: true,
});
fs.rmSync(path.join(__dirname, "/../packages/calckey-js/built"), {
recursive: true,
force: true,
});
fs.rmSync(path.join(__dirname, "/../built"), {
recursive: true,
force: true,
});
2023-07-07 19:22:30 +00:00
})();