fix(build): bundle zod inline to fix pnpm global install resolution (#78515)

Merged via squash.

Prepared head SHA: c925d1afab
Co-authored-by: ggzeng <20488795+ggzeng@users.noreply.github.com>
Co-authored-by: altaywtf <9790196+altaywtf@users.noreply.github.com>
Reviewed-by: @altaywtf
This commit is contained in:
Gavin Zeng
2026-05-18 00:20:42 +08:00
committed by GitHub
parent ac848d318d
commit ea72414e1c
6 changed files with 189 additions and 2 deletions

View File

@@ -183,7 +183,12 @@ function shouldNeverBundleDependency(id: string): boolean {
}
function shouldAlwaysBundleDependency(id: string): boolean {
return id === "@openclaw/fs-safe" || id.startsWith("@openclaw/fs-safe/");
return (
id === "@openclaw/fs-safe" ||
id.startsWith("@openclaw/fs-safe/") ||
id === "zod" ||
id.startsWith("zod/")
);
}
function listBundledPluginEntrySources(