-
Firstly, dep-check has been extremely helpful for our React Native monorepo, thank you so much! ❤️ I have read through the documentation, and source code, and didn't see the use case I'm looking for: If a dependency is added via I'm not sure I have considered enough concrete cases to suggest that this be fixed automatically, but having a command that will fail if a dependency—that also exists as a capability—exists in the manifest without the capability. I tried to build this myself using capabilitiesFor, but this gives an exhaustive list of capabilities and transient capabilities, whereas what I'm looking for are the minimal set of capabilities that satisfy all the dependencies. I hope that explanation makes sense. I understand if this is not something you want to add to dep-check, but some discussion how I might be able to implement this would be greatly appreciated (hopefully without reimplementing all of the capability-walking code myself), or what pathological cases I haven't considered. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @jonathanj, I'm glad you find it useful ❤️ This sounds similar to #933. Let me know if I've misunderstood your request. I think we want this to show up in "vigilant" mode. If you have a configured package, running in "vigilant" mode will also check unmanaged dependencies, e.g.:
But we probably want to change the messaging to something like:
That would at least give you the capability name to add. I think we can fix this automatically in "vigilant" mode without breaking any usage scenarios I can think of. cc @kelset in case I'm missing something. We're in the middle of a mini-rewrite at the moment (progress: #1890) so things are changing very quickly. If you're interested in contributing, I would wait until we are closer to publishing 2.0. If you're interested in looking ahead, you can now find the code under rnx-kit/packages/align-deps/src/commands/vigilant.ts Lines 50 to 58 in 1430592 If a dependency is misaligned, we want to know which capability is missing: rnx-kit/packages/align-deps/src/commands/vigilant.ts Lines 152 to 157 in 1430592 |
Beta Was this translation helpful? Give feedback.
Hi @jonathanj, I'm glad you find it useful ❤️
This sounds similar to #933. Let me know if I've misunderstood your request.
I think we want this to show up in "vigilant" mode. If you have a configured package, running in "vigilant" mode will also check unmanaged dependencies, e.g.:
But we probably want to change the messaging to something like:
That would at least give you the capability name to add. I think we can fix this automatically in "vigilant" mode…