2023-06-26 16:16:55 +01:00
|
|
|
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")) {
|
2023-06-26 16:16:55 +01:00
|
|
|
rmSync(`./build/${file}`, { recursive: true });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-20 02:17:39 +01:00
|
|
|
//renameSync("./build/combined.js", "./build/index.js");
|
2023-06-26 16:16:55 +01:00
|
|
|
//renameSync("./build/combined.d.ts", "./build/index.d.ts");
|