feat: add scripts comparison tool for package.json across repositories#148
Merged
joshjohanning merged 2 commits intomainfrom Jan 29, 2026
Merged
feat: add scripts comparison tool for package.json across repositories#148joshjohanning merged 2 commits intomainfrom
joshjohanning merged 2 commits intomainfrom
Conversation
📋 Lint Results⚡ ./gh-cli scripts🔧 ./scripts scriptsLint results updated at Thu Jan 29 17:20:49 UTC 2026 |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds tooling to compare package.json devDependencies and scripts across multiple repositories to help keep project configuration consistent.
Changes:
- Add
compare-dev-dependencies-across-repositories.shto fetch each repository’spackage.jsonand generate a devDependency version matrix plus mismatch/missing summaries. - Add
compare-package-scripts-across-repositories.shto aggregate and comparescriptsblocks across repositories, reporting differing values and missing scripts. - Update
gh-cli/README.mdwith usage documentation for both new comparison scripts in the existing script catalog.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
gh-cli/compare-package-scripts-across-repositories.sh |
Implements script collection, comparison logic, and output formatting for package.json scripts across repositories. |
gh-cli/compare-dev-dependencies-across-repositories.sh |
Implements devDependency extraction, a version matrix, and reporting of version mismatches and missing dependencies across repositories. |
gh-cli/README.md |
Documents the new comparison scripts with descriptions and basic usage examples to surface them alongside other gh-cli utilities. |
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.
This pull request adds two new shell scripts to the
gh-clidirectory for comparingpackage.jsonfiles across multiple repositories, along with updates to theREADME.mdto document their usage. These scripts help identify differences indevDependenciesandscriptsbetween repositories, making it easier to maintain consistency across projects.