t00-multiuser/server/tooling/cleanup.ts

12 lines
342 B
TypeScript
Raw Normal View History

2024-04-18 23:18:49 +01:00
import { readdirSync, rmSync, renameSync } from "fs";
const libFiles = readdirSync("./build");
for (const file of libFiles) {
if (!file.startsWith("index.min.js")) {
rmSync(`./build/${file}`, { recursive: true });
}
}
//renameSync("./build/combined.js", "./build/index.js");
//renameSync("./build/combined.d.ts", "./build/index.d.ts");