feat(rush-lib): support pnpm strictDepBuilds, allowBuilds (10.26.0+), and dangerouslyAllowAllBuilds#5800
Draft
Copilot wants to merge 4 commits into
Draft
feat(rush-lib): support pnpm strictDepBuilds, allowBuilds (10.26.0+), and dangerouslyAllowAllBuilds#5800Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
…erBuiltDependencies
Copilot
AI
changed the title
feat: add pnpm allowBuilds support, deprecate globalNeverBuiltDependencies
feat(rush-lib): add pnpm 11 May 11, 2026
allowBuilds support, deprecate globalNeverBuiltDependencies
Copilot created this pull request from a session on behalf of
bmiddha
May 11, 2026 03:09
View session
Copilot stopped work on behalf of
bmiddha due to an error
May 12, 2026 01:31
…rouslyAllowAllBuilds settings - Add globalStrictDepBuilds (pnpm 10.3.0+) to PnpmOptionsConfiguration and PnpmWorkspaceFile - Add globalDangerouslyAllowAllBuilds (pnpm 10.9.0+) to PnpmOptionsConfiguration and PnpmWorkspaceFile - Update globalAllowBuilds version requirement from pnpm 11.0.0 to 10.26.0 - Add strictDepBuilds/dangerouslyAllowAllBuilds handling in WorkspaceInstallManager - Update pnpm-config.schema.json with new fields - Add test fixtures and tests
Copilot
AI
changed the title
feat(rush-lib): add pnpm 11
feat(rush-lib): support pnpm strictDepBuilds, allowBuilds (10.26.0+), and dangerouslyAllowAllBuilds
May 12, 2026
allowBuilds support, deprecate globalNeverBuiltDependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New Feature
Adds Rush config support for three pnpm workspace settings that control dependency build script permissions.
allowBuildsversion floor is corrected from 11.0.0 → 10.26.0 (when it was added topnpm-workspace.yaml).New
pnpm-config.jsonsettingsglobalStrictDepBuilds(pnpm 10.3.0+) — fails the install with a non-zero exit code if any dependency has an unreviewed build script (not listed inglobalAllowBuilds)globalAllowBuilds(pnpm 10.26.0+, was incorrectly documented as 11.0.0+) — map of package matchers →true/falseto explicitly allow or block build scripts; replaces the now-deprecatedglobalNeverBuiltDependenciesandglobalOnlyBuiltDependenciesglobalDangerouslyAllowAllBuilds(pnpm 10.9.0+) — skips all approval requirements; runs every dependency's install scripts unconditionally{ "globalStrictDepBuilds": true, "globalAllowBuilds": { "esbuild": true, "core-js": false, "nx@21.6.4 || 21.6.5": true } }All three settings are written to
pnpm-workspace.yamlduring installation. Using them with an older pnpm version emits a warning.Implementation details
IPnpmOptionsJson/PnpmOptionsConfiguration— new fields with JSDoc and version notesPnpmWorkspaceFile— newstrictDepBuilds/dangerouslyAllowAllBuildsYAML fields;setStrictDepBuilds()/setDangerouslyAllowAllBuilds()settersWorkspaceInstallManager— version-gated writes with pnpm version warnings (10.3.0, 10.26.0, 10.9.0)pnpm-config.schema.json— schema entries for new fields; correctedglobalAllowBuildsdescriptionrush-init/pnpm-config.json— template updated with correct versions and new settings examplesPnpmOptionsConfigurationandPnpmWorkspaceFile