mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +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
@@ -1,5 +1,3 @@
|
|||||||
import { ShellDefinition, ShellType } from "../../../protos/src/blitzkit";
|
|
||||||
|
|
||||||
export function canSplash(
|
export function canSplash(
|
||||||
type: ShellDefinition["type"],
|
type: ShellDefinition["type"],
|
||||||
): type is ShellType.SHELL_TYPE_HE {
|
): type is ShellType.SHELL_TYPE_HE {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
export * from "../../protos/src/blitzkit";
|
|
||||||
export * from "./api";
|
export * from "./api";
|
||||||
export * from "./blitz";
|
export * from "./blitz";
|
||||||
export * from "./blitzkit";
|
export * from "./blitzkit";
|
||||||
|
|||||||
@@ -29,15 +29,15 @@ for (const root of ROOTS) {
|
|||||||
|
|
||||||
for (const file of filesRaw) {
|
for (const file of filesRaw) {
|
||||||
if (file.endsWith(".proto")) {
|
if (file.endsWith(".proto")) {
|
||||||
files.push(file);
|
const name = file.slice(0, -6);
|
||||||
|
|
||||||
|
index += `export * from "./${name}";\n`;
|
||||||
args += `${root}/${file}\n`;
|
args += `${root}/${file}\n`;
|
||||||
|
|
||||||
|
files.push(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file.endsWith(".ts")) {
|
if (file.endsWith(".ts")) {
|
||||||
const name = file.slice(0, -3);
|
|
||||||
|
|
||||||
index += `export * from "./${name}";\n`;
|
|
||||||
|
|
||||||
await rm(`${root}/${file}`);
|
await rm(`${root}/${file}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user