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