mc-beta-server/tooling/cleanup.ts

12 lines
342 B
TypeScript
Raw Permalink Normal View History

import { readdirSync, rmSync, renameSync } from "fs";
const libFiles = readdirSync("./build");
for (const file of libFiles) {
2023-08-20 02:17:39 +01:00
if (!file.startsWith("index.min.js")) {
rmSync(`./build/${file}`, { recursive: true });
}
}
2023-08-20 02:17:39 +01:00
//renameSync("./build/combined.js", "./build/index.js");
//renameSync("./build/combined.d.ts", "./build/index.d.ts");