12 lines
336 B
TypeScript
12 lines
336 B
TypeScript
|
import { readdirSync, rmSync, renameSync } from "fs";
|
||
|
|
||
|
const libFiles = readdirSync("./build");
|
||
|
|
||
|
for (const file of libFiles) {
|
||
|
if (!file.startsWith("combined")) {
|
||
|
rmSync(`./build/${file}`, { recursive: true });
|
||
|
}
|
||
|
}
|
||
|
|
||
|
renameSync("./build/combined.js", "./build/index.js");
|
||
|
//renameSync("./build/combined.d.ts", "./build/index.d.ts");
|