diff --git a/packages/scripts/src/protos.ts b/packages/scripts/src/protos.ts index 1ad3b85f1..668fb2873 100644 --- a/packages/scripts/src/protos.ts +++ b/packages/scripts/src/protos.ts @@ -1,6 +1,6 @@ import { exec as execSync } from "child_process"; import { existsSync } from "fs"; -import { readdir, rm, writeFile } from "fs/promises"; +import { readdir, rm } from "fs/promises"; import { promisify } from "util"; const MAX_COMMAND_LENGTH = 2 ** 11; @@ -58,13 +58,4 @@ for (const root of roots) { 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") - ); } diff --git a/submodules/blitzkit-closed b/submodules/blitzkit-closed index 835ce5c57..bc6c99bd9 160000 --- a/submodules/blitzkit-closed +++ b/submodules/blitzkit-closed @@ -1 +1 @@ -Subproject commit 835ce5c57edcbf984e325d5929873aaf21a609c8 +Subproject commit bc6c99bd9a2169f7cb98ae5d1e9dea213df7dcb7 diff --git a/tsconfig.json b/tsconfig.json index f5912f4e8..41329b11b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,7 +18,10 @@ { "name": "next" } - ] + ], + "paths": { + "@protos/*": ["./submodules/blitzkit-closed/protos/*"] + } }, "exclude": ["node_modules/**/*", "dist", ".next"] }