mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
simplify imports
This commit is contained in:
1 parent
0a4b81cde4
commit
f550386fd9
24 files changed
+59
-62
No files matched your search
@@ -39,17 +39,14 @@ args += "--ts_proto_opt=unrecognizedEnum=false\n";
|
||||
args += "--ts_proto_opt=snakeToCamel=false\n";
|
||||
args += `--ts_proto_out=${ROOT}\n`;
|
||||
|
||||
args += `-I=${ROOT}\n`;
|
||||
// for (const dir of await readdir(ROOT)) {
|
||||
// args += `-I=${ROOT}/${dir}\n`;
|
||||
// }
|
||||
for (const dir of await readdir(ROOT)) {
|
||||
args += `-I=${ROOT}/${dir}\n`;
|
||||
}
|
||||
|
||||
const filesRaw = await readdir(`${ROOT}`, { recursive: true });
|
||||
const files: string[] = [];
|
||||
|
||||
for (const file of filesRaw) {
|
||||
if (!file.startsWith("blitz/")) continue;
|
||||
|
||||
if (file.endsWith(".proto")) {
|
||||
files.push(file);
|
||||
args += `${ROOT}/${file}\n`;
|
||||
|
||||
Reference in new issue
Block a user