diff --git a/apps/t3/src/runtimeArchitecture.test.ts b/apps/t3/src/runtimeArchitecture.test.ts index 2313342000..5d99709ebc 100644 --- a/apps/t3/src/runtimeArchitecture.test.ts +++ b/apps/t3/src/runtimeArchitecture.test.ts @@ -35,4 +35,12 @@ describe("runtime architecture boundaries", () => { expect(fs.existsSync(legacyDesktopPackagePath)).toBe(false); }); + + it("keeps runtime-core bundled into published t3 runtime output", () => { + const tsupConfigPath = path.resolve(import.meta.dirname, "..", "tsup.config.ts"); + const tsupConfigSource = fs.readFileSync(tsupConfigPath, "utf8"); + + expect(tsupConfigSource).toContain("\"@acme/runtime-core\""); + expect(tsupConfigSource).toContain("noExternal"); + }); }); diff --git a/apps/t3/tsup.config.ts b/apps/t3/tsup.config.ts index dcd1efb243..115949c306 100644 --- a/apps/t3/tsup.config.ts +++ b/apps/t3/tsup.config.ts @@ -5,6 +5,6 @@ export default defineConfig({ format: ["esm"], dts: true, clean: true, - noExternal: ["@acme/contracts"], + noExternal: ["@acme/contracts", "@acme/runtime-core"], outDir: "dist", });