Binato/tooling/cleanup.ts

12 lines
343 B
TypeScript
Raw Normal View History

2023-09-10 12:59:22 +01:00
import { readdirSync, rmSync, renameSync } from "fs";
const libFiles = readdirSync("./build");
for (const file of libFiles) {
2023-09-10 20:37:46 +01:00
if (!file.startsWith("Binato.min.js")) {
2023-09-10 12:59:22 +01:00
rmSync(`./build/${file}`, { recursive: true });
}
}
//renameSync("./build/combined.js", "./build/index.js");
//renameSync("./build/combined.d.ts", "./build/index.d.ts");