mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-11 16:25:41 +00:00
15 lines
535 B
JavaScript
15 lines
535 B
JavaScript
const { execSync } = require("child_process");
|
|
const path = require("path");
|
|
const fs = require("fs");
|
|
const { argv, stdout, exit } = require("process");
|
|
const { execIn, parts, getDirs, walk, sanitizeVarName } = require("../utils");
|
|
|
|
module.exports = function (config) {
|
|
console.log(`==> Cleaning asset cache...`);
|
|
const assetDir = path.resolve(path.join(config.rootDir, "assets", "cache"));
|
|
if (fs.existsSync(assetDir)) {
|
|
fs.rmSync(assetDir, { recursive: true });
|
|
if (config.verbose) console.log(`Deleted ${assetDir}!`);
|
|
}
|
|
};
|