@devries-cameron20 / t3code Mirror · read-only / commits / 348a9140e9
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 05:00 UTC

fix(cli): bundle patched diff parser dependency (#2957)

Co-authored-by: Julius Marminge <julius@mac.lan>

Julius Marminge committed Jun 4, 2026 at 11:53 UTC 348a9140e9d352fdcb1779d467b4b68000b61bdf
1 file changed +11 -3
apps/server/vite.config.ts
+11 -3
@@ -3,7 +3,16 @@ import { defineConfig, mergeConfig } from "vite-plus";
3
4 import baseConfig from "../../vite.config.ts";
5
6 -const internalPackagePrefixes = ["@t3tools/", "effect-acp", "effect-codex-app-server"];
6 +const bundledPackagePrefixes = [
7 + "@pierre/diffs",
8 + "@t3tools/",
9 + "effect-acp",
10 + "effect-codex-app-server",
11 +];
12 +
13 +export function shouldBundleCliDependency(id: string): boolean {
14 + return bundledPackagePrefixes.some((prefix) => id.startsWith(prefix));
15 +}
16
17 export default mergeConfig(
18 baseConfig,
@@ -23,8 +32,7 @@ export default mergeConfig(
32 sourcemap: true,
33 clean: true,
34 deps: {
26 - alwaysBundle: (id: string) =>
27 - internalPackagePrefixes.some((prefix) => id.startsWith(prefix)),
35 + alwaysBundle: shouldBundleCliDependency,
36 onlyBundle: false,
37 },
38 banner: {