-
I would like to write a constraint to enforce that a specific version of a package is used (if it's used at all). So for example, if a workspace includes While I understand how this works in theory and the docs are helpful, I'm struggling to write this constraint as I'm not sure on the exact syntax to use in a real-world example. I did see this recipe which looks like what I want to do, but I'm not sure if this is the right choice. I would really appreciate it if someone could write the above constraint out for me so I could see a real-world example of this.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Didn't try it, but it should be something like this: gen_enforced_dependency(WorkspaceCwd, 'react', '17.0.2', DependencyType) :-
workspace_has_dependency(WorkspaceCwd, 'react', _, DependencyType). |
Beta Was this translation helpful? Give feedback.
Didn't try it, but it should be something like this: