diff --git a/packages/core/src/blitz/canSplash.ts b/packages/core/src/blitz/canSplash.ts index 25cde411e..33c60fc99 100644 --- a/packages/core/src/blitz/canSplash.ts +++ b/packages/core/src/blitz/canSplash.ts @@ -1,5 +1,3 @@ -import { ShellDefinition, ShellType } from "../../../protos/src/blitzkit"; - export function canSplash( type: ShellDefinition["type"], ): type is ShellType.SHELL_TYPE_HE { diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 8c62596e9..9b3ffacd2 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -1,4 +1,3 @@ -export * from "../../protos/src/blitzkit"; export * from "./api"; export * from "./blitz"; export * from "./blitzkit"; diff --git a/packages/scripts/src/protos.ts b/packages/scripts/src/protos.ts index e2b2a571f..b99d7e287 100644 --- a/packages/scripts/src/protos.ts +++ b/packages/scripts/src/protos.ts @@ -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}`); } }