authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-06-04 11:53:47-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-06-04 18:53:47+00:00
log348a9140e9d352fdcb1779d467b4b68000b61bdf
tree73ce697b71220afe5536f170eda0fd81eaa450fd
parent9fc485afaf219c44f49cd47eeff2dc1ea2e9fcd1
signature Signed by PGP key B5690EEEBB952194

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

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

1 files changed, 11 insertions(+), 3 deletions(-)

apps/server/vite.config.ts+11-3
......@@ -3,7 +3,16 @@ import { defineConfig, mergeConfig } from "vite-plus";
33
44import baseConfig from "../../vite.config.ts";
55
6const internalPackagePrefixes = ["@t3tools/", "effect-acp", "effect-codex-app-server"];
6const bundledPackagePrefixes = [
7 "@pierre/diffs",
8 "@t3tools/",
9 "effect-acp",
10 "effect-codex-app-server",
11];
12
13export function shouldBundleCliDependency(id: string): boolean {
14 return bundledPackagePrefixes.some((prefix) => id.startsWith(prefix));
15}
716
817export default mergeConfig(
918 baseConfig,
......@@ -23,8 +32,7 @@ export default mergeConfig(
2332 sourcemap: true,
2433 clean: true,
2534 deps: {
26 alwaysBundle: (id: string) =>
27 internalPackagePrefixes.some((prefix) => id.startsWith(prefix)),
35 alwaysBundle: shouldBundleCliDependency,
2836 onlyBundle: false,
2937 },
3038 banner: {