feat(update-deps): actually apply updates to package.json (default), add --dry-run - #10
Merged
Merged
Conversation
update-deps now rewrites outdated version specs in the target repo's package.json files (preserving ^/~ prefixes and file formatting) instead of only reporting them. --dry-run/--check restores detect-only behavior. JSON output gains updatedFiles and dry_run fields.
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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.
Summary
makage update-depspreviously only detected outdated deps and printed JSON — consumers (e.g. the constructive-hub update-constructive-deps workflow) had to reconcile withpnpm update/jqthemselves. It now lives up to its name: by default it rewrites the outdated version specs in the target repo'spackage.jsonfiles in place.^1.0.0→^2.0.0,~1.5.0→~1.6.0;workspace:specs untouched--dry-run(alias--check) restores the old detect-only behaviorupdatedFiles: string[]anddry_run: boolean;MatchedDepgainsfileExisting CI workflows keep working: JSON stdout schema is backward compatible, and after the tool writes specs, a
pnpm install --no-frozen-lockfilesyncs the lockfile (thepnpm update -r --latest/ jq steps become redundant and can be dropped).Docs (root + package READMEs, makage-overview skill) updated, plus tests for write-by-default and
--dry-run.Link to Devin session: https://app.devin.ai/sessions/a471fa4f41cc45aabc1513a2201b02f7
Requested by: @pyramation