mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-27 20:49:52 +01: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 { exec as execSync } from "child_process";
|
||||||
import { existsSync } from "fs";
|
import { existsSync } from "fs";
|
||||||
import { readdir, rm, writeFile } from "fs/promises";
|
import { readdir, rm } from "fs/promises";
|
||||||
import { promisify } from "util";
|
import { promisify } from "util";
|
||||||
|
|
||||||
const MAX_COMMAND_LENGTH = 2 ** 11;
|
const MAX_COMMAND_LENGTH = 2 ** 11;
|
||||||
@@ -58,13 +58,4 @@ for (const root of roots) {
|
|||||||
|
|
||||||
await exec(command);
|
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")
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
Submodule submodules/blitzkit-closed updated: 835ce5c57e...bc6c99bd9a.
+4
-1
@@ -18,7 +18,10 @@
|
|||||||
{
|
{
|
||||||
"name": "next"
|
"name": "next"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"paths": {
|
||||||
|
"@protos/*": ["./submodules/blitzkit-closed/protos/*"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules/**/*", "dist", ".next"]
|
"exclude": ["node_modules/**/*", "dist", ".next"]
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user