build(pnpm): restore exotic subdependency blocking

This commit is contained in:
Peter Steinberger 2026-05-13 10:58:48 +01:00
parent 85f9276624
commit 1e8e004361
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View file

@ -36,6 +36,7 @@ minimumReleaseAgeExclude:
- "sqlite-vec-*"
nodeLinker: hoisted
blockExoticSubdeps: true
overrides:
"@anthropic-ai/sdk": 0.95.1

View file

@ -4,6 +4,7 @@ import { parse } from "yaml";
type PnpmBuildConfig = {
allowBuilds?: Record<string, boolean>;
blockExoticSubdeps?: boolean;
ignoredBuiltDependencies?: string[];
onlyBuiltDependencies?: string[];
};
@ -25,6 +26,7 @@ describe("package manager build policy", () => {
expect(packageJson.pnpm).toBeUndefined();
expect(workspace.allowBuilds?.["@discordjs/opus"]).toBe(false);
expect(workspace.blockExoticSubdeps).toBe(true);
expect(workspace.onlyBuiltDependencies).toBeUndefined();
});
});