fix(build): exclude the test-only generated catalog from packages (#1116)

This commit is contained in:
Ysopwnable
2026-10-09 03:02:07 +08:00
committed by GitHub
parent 8f9da25164
commit d1c904bac7
3 changed files with 10 additions and 3 deletions
+6
View File
@@ -33,6 +33,12 @@ export async function verifyPackagePack({ root, workspace }) {
throw new Error(
"package included authored skill sources instead of only the generated bundle",
);
if (
packedFiles.some((path) =>
/^package\/(?:dist|src)\/generatedMcpToolCatalog\./u.test(path),
)
)
throw new Error("package included the test-only generated MCP catalog");
const skill = (
await exec("tar", [
"-xOf",