mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
feat: cleanup
This commit is contained in:
1 parent
c6eae9ad51
commit
6dc82588c1
3 files changed
+6
-12
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { exec as execSync } from "child_process";
|
||||
import { existsSync } from "fs";
|
||||
import { readdir, rm, writeFile } from "fs/promises";
|
||||
import { readdir, rm } from "fs/promises";
|
||||
import { promisify } from "util";
|
||||
|
||||
const MAX_COMMAND_LENGTH = 2 ** 11;
|
||||
@@ -58,13 +58,4 @@ for (const root of roots) {
|
||||
|
||||
await exec(command);
|
||||
}
|
||||
|
||||
await writeFile(
|
||||
`${root}/index.ts`,
|
||||
"// @ts-nocheck\n" +
|
||||
files
|
||||
.map((file) => file.replace(".proto", ""))
|
||||
.map((file) => `export * from './${file}.ts';`)
|
||||
.join("\n")
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user