feat(deps): sibling-repo dependency updates - #14
Merged
Conversation
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
Adds
makage deps, a local front end overupdate-depsfor the common case where all repos are siblings on disk. A bare name resolves to../<name>relative to the target workspace root, so fromconstructive-db:which is what the per-repo scripts are meant to look like:
Mechanics worth knowing:
updateDeps({ from, in, dryRun, quiet })is now the reusable core;runUpdateDeps(args)is the unchanged--from/--inCLI wrapper that still prints the JSON blob to stdout.depscalls the core once per sibling and prints a human-readableconsumer: dep old -> newsummary to stderr, keeping stdout clean unless--jsonis passed.findWorkspaceRoot(cwd)(override with--in), so it works from any subdirectory of the repo..//are treated as paths (makage deps ../../other/repo).pnpm-workspace.yamlis a hard error rather than a silent skip;--allonly picks up directories that are pnpm workspaces.--installrunspnpm installin the target only when something actually changed and it isn't a dry run.Tests use a real temp-dir sibling layout (
parent/{constructive,pgsql-parser,constructive-db}) rather than fs mocks, covering bare-name resolution,--all,--dry-run, path arguments,--list, and both error paths. README (root + package) and the makage-overview skill document the command.Link to Devin session: https://app.devin.ai/sessions/b0c68abb52c94c879e90480d7d6d4b80
Requested by: @pyramation