You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[rush][rush-published-versions-json-plugin] Add plugin-native global commands; add published versions JSON plugin. (#5701)
* Add functions to better support commands provided by global commands.
* Introduce rush-published-versions-json-plugin.
* fixup! Introduce rush-published-versions-json-plugin.
* fixup! Introduce rush-published-versions-json-plugin.
* fixup! Introduce rush-published-versions-json-plugin.
* fixup! Introduce rush-published-versions-json-plugin.
* Add "globalPlugin" command kind for plugin-native global commands
Introduces a new "globalPlugin" commandKind for command-line.json that can only
be used in Rush plugin command-line.json files. Unlike "global" commands, it has
no shellCommand — the implementation must be provided entirely by the plugin via
the runGlobalCustomCommand hook with setHandled().
- Added globalPluginCommandKind constant to RushConstants
- Added globalPluginCommand to JSON schema (no shellCommand/autoinstallerName)
- Added IGlobalPluginCommandJson type; at runtime, normalized to IGlobalCommandConfig
with shellCommand="" and isPluginOnly=true (similar to bulk→phased conversion)
- Rejected globalPlugin in repo command-line.json (loadFromFileOrDefault)
- Updated plugin command-line.json to use the new kind
- Fixed plugin .npmignore to include command-line.json
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add changefile for globalPlugin command kind
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address PR feedback: rename isPluginOnly to providedByPlugin
Rename isPluginOnly → providedByPlugin for clarity per review feedback.
Also update the first changefile comment to reflect the globalPlugin design.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Split changefiles: API additions vs globalPlugin command kind
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
"comment": "Add `getCustomParametersByLongName()` and `setHandled()` to `IGlobalCommand`, enabling Rush plugins to handle global command execution and access parsed command-line parameter values.",
"comment": "Add a new \"globalPlugin\" command kind for command-line.json that allows Rush plugins to define global commands without a shellCommand. This command kind can only be used in plugin-provided command-line.json files.",
0 commit comments