Bundle runtime-core in t3 build configuration
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
eb38f3c475
commit
3e0bdaff2f
2 files changed
+9
-1
No files matched your search
@@ -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");
|
||||
});
|
||||
});
|
||||
@@ -5,6 +5,6 @@ export default defineConfig({
|
||||
format: ["esm"],
|
||||
dts: true,
|
||||
clean: true,
|
||||
noExternal: ["@acme/contracts"],
|
||||
noExternal: ["@acme/contracts", "@acme/runtime-core"],
|
||||
outDir: "dist",
|
||||
});
|
||||
Reference in new issue
Block a user