feat: add global install target and --minor-only flag to update-packages#137
Merged
chrisjwalk merged 3 commits intomainfrom Apr 20, 2026
Merged
feat: add global install target and --minor-only flag to update-packages#137chrisjwalk merged 3 commits intomainfrom
chrisjwalk merged 3 commits intomainfrom
Conversation
- Add `install` target that depends on `pack` and runs `npm install -g --prefix $HOME/.local` (no root required) - Add shebang injection in `pack` step so the installed binary is executable without specifying a runtime Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://green-water-08792290f-137.eastus2.2.azurestaticapps.net |
- Add isMajorBump(current, latest) helper to lib.ts - Extend PackageInfo with isMajor: boolean, computed in fetchOutdatedPackages - Add --minor-only / -m CLI flag to skip major version bumps - Non-interactive: auto-omits all major bumps - Interactive: pre-selects major bumps in the omit MultiSelect - PackageTable shows 'MAJOR' badge in yellow for major bumps - MultiSelect labels include ⚠ MAJOR indicator for major bump packages - Add isMajorBump tests in lib.spec.ts (6 new test cases) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://green-water-08792290f-137.eastus2.2.azurestaticapps.net |
- Add -j / --json CLI flag (implies --interactive=false)
- Ink UI is silenced (redirected to a null stream) in JSON mode
- On success, prints structured JSON to stdout:
{ updated, omitted, failed, hasMigrations, nextSteps }
- On error, prints { "error": "..." } to stderr and exits with code 1
- "no packages found" in JSON mode is a success (empty updated array)
- Add onError prop to App for programmatic error handling
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://green-water-08792290f-137.eastus2.2.azurestaticapps.net |
chrisjwalk
approved these changes
Apr 20, 2026
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.
Closes #136
Changes
Global install target
nx run update-packages:installtarget that installs the tool globally vianpm install -g --prefix $HOME/.localpackstep so the binary is directly executablesudo npm install -g ./dist/...tgzalso works--minor-only/-mflagPackageTableshows a yellowMAJORbadge for major version bumps⚠ MAJORindicator for quick identificationUsage examples