Skip to content

feat: dependency syncing checker #10288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

feat: dependency syncing checker #10288

wants to merge 16 commits into from

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Apr 4, 2025

Description

Dependency checker to see if everything is in sync in all your package.jsons. Reports errors when there are multiple versions of the same direct dependency in the repo.

Also features:

Ignoring a dependency:

  "dependencies": {
    "typescript": {
      "ignore": true,
      "packages": ["*"],
    }

Ignoring a dependency:

  "dependencies": {
    "typescript": {
      "packages": ["*"],
      "pinToVersion": "1.0.0"
    }

Specific package(s):

  "dependencies": {
    "typescript": {
      "ignore": true,
      "packages": ["@repo/ui"],
    }

Note that I am not attached to this API. If it seems unintuitive or otherwise lacking in some way, I'm happy to make adjustments.

Testing Instructions

Wrote some tests - but do try it out!

TODO:

  • Monorepo only
  • Not sure that packages is actually working for pinToVersion? Need to verify.
  • Integration tests
  • schema.json
  • Bikeshed command name
  • What's printed to the console for parsing errors for ignore and pinToVersion is not right
  • Flag for --only=prod and --only=dev?
  • Accept ranges in pinToVersion?
  • Documentation

Copy link

vercel bot commented Apr 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 4:12pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 4:12pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 4:12pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 4:12pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 4:12pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 4:12pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 4:12pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 4:12pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 4:12pm
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 4:12pm

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