Skip to content

feat(update-deps): actually apply updates to package.json (default), add --dry-run - #10

Merged
pyramation merged 1 commit into
mainfrom
devin/1784618616-update-deps-write
Jul 21, 2026
Merged

feat(update-deps): actually apply updates to package.json (default), add --dry-run#10
pyramation merged 1 commit into
mainfrom
devin/1784618616-update-deps-write

Conversation

@pyramation

Copy link
Copy Markdown
Contributor

Summary

makage update-deps previously only detected outdated deps and printed JSON — consumers (e.g. the constructive-hub update-constructive-deps workflow) had to reconcile with pnpm update/jq themselves. It now lives up to its name: by default it rewrites the outdated version specs in the target repo's package.json files in place.

  • Prefix-preserving rewrite: ^1.0.0^2.0.0, ~1.5.0~1.6.0; workspace: specs untouched
  • File formatting preserved (detected indentation + trailing newline)
  • --dry-run (alias --check) restores the old detect-only behavior
  • JSON output is a superset of before: adds updatedFiles: string[] and dry_run: boolean; MatchedDep gains file

Existing CI workflows keep working: JSON stdout schema is backward compatible, and after the tool writes specs, a pnpm install --no-frozen-lockfile syncs the lockfile (the pnpm 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

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.
@pyramation pyramation self-assigned this Jul 21, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@pyramation
pyramation merged commit e267a5f into main Jul 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant