feat(rush-lib): add pnpm 11 allowBuilds support, deprecate globalNeverBuiltDependencies#5800
Draft
Copilot wants to merge 2 commits into
Draft
feat(rush-lib): add pnpm 11 allowBuilds support, deprecate globalNeverBuiltDependencies#5800Copilot wants to merge 2 commits into
allowBuilds support, deprecate globalNeverBuiltDependencies#5800Copilot wants to merge 2 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
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
Rush had no support for pnpm 11's
allowBuildssetting, andglobalNeverBuiltDependenciesis now obsolete — pnpm 11 removed reading build settings frompackage.jsonentirely, requiring all such config inpnpm-workspace.yaml.What does this feature do?
Introduces
globalAllowBuildsinpnpm-config.json— aRecord<string, boolean>map that controls per-package build script permissions, written toallowBuildsin the generatedpnpm-workspace.yaml(pnpm 11.0.0+):Deprecates
globalNeverBuiltDependencies:neverBuiltDependenciestopackage.jsonfor backward compatpackage.jsonpnpm-field support entirely)globalNeverBuiltDependenciesandglobalAllowBuildssimultaneously throws an errorMigration: replace
"globalNeverBuiltDependencies": ["pkg"]with"globalAllowBuilds": { "pkg": false }.Why is this feature needed?
pnpm 11.0.0 removed
neverBuiltDependencies,onlyBuiltDependencies, and related settings, replacing them with a single unifiedallowBuildsmap inpnpm-workspace.yaml. Without this change, Rush users on pnpm 11 silently lose build-script control.Implementation details
pnpm-config.schema.json— newglobalAllowBuildsproperty (additionalProperties: boolean);globalNeverBuiltDependenciesdescription marked@deprecatedPnpmOptionsConfiguration.ts— newglobalAllowBuildsclass property;@deprecatedJSDoc onglobalNeverBuiltDependencies; mutual exclusion guard (throws if both are set)PnpmWorkspaceFile.ts— newsetAllowBuilds()method;allowBuildsserialized into the generatedpnpm-workspace.yamlWorkspaceInstallManager.ts— callssetAllowBuilds()with a version guard warning for pnpm < 11InstallHelpers.ts— version-aware deprecation warning forglobalNeverBuiltDependencies; skips writing topackage.jsonon pnpm ≥ 11pnpm-config.jsontemplate — documents new setting; deprecation note and migration guidance on old setting