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

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Julius MarmingeandJulius Marminge authored and GitHub committed 2026-06-04 18:53:47 +00:00
1 parent 9fc485afaf
commit 348a9140e9
1 file changed
+11 -3
+11 -3
View File
@@ -3,7 +3,16 @@ import { defineConfig, mergeConfig } from "vite-plus";
import baseConfig from "../../vite.config.ts";
const internalPackagePrefixes = ["@t3tools/", "effect-acp", "effect-codex-app-server"];
const bundledPackagePrefixes = [
"@pierre/diffs",
"@t3tools/",
"effect-acp",
"effect-codex-app-server",
];
export function shouldBundleCliDependency(id: string): boolean {
return bundledPackagePrefixes.some((prefix) => id.startsWith(prefix));
}
export default mergeConfig(
baseConfig,
@@ -23,8 +32,7 @@ export default mergeConfig(
sourcemap: true,
clean: true,
deps: {
alwaysBundle: (id: string) =>
internalPackagePrefixes.some((prefix) => id.startsWith(prefix)),
alwaysBundle: shouldBundleCliDependency,
onlyBundle: false,
},
banner: {