mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
build protos indexing on first shot
This commit is contained in:
1 parent
4fc57d7fc1
commit
e52f003c1b
3 files changed
+5
-8
No files matched your search
@@ -29,15 +29,15 @@ for (const root of ROOTS) {
|
||||
|
||||
for (const file of filesRaw) {
|
||||
if (file.endsWith(".proto")) {
|
||||
files.push(file);
|
||||
const name = file.slice(0, -6);
|
||||
|
||||
index += `export * from "./${name}";\n`;
|
||||
args += `${root}/${file}\n`;
|
||||
|
||||
files.push(file);
|
||||
}
|
||||
|
||||
if (file.endsWith(".ts")) {
|
||||
const name = file.slice(0, -3);
|
||||
|
||||
index += `export * from "./${name}";\n`;
|
||||
|
||||
await rm(`${root}/${file}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user