-
Notifications
You must be signed in to change notification settings - Fork 22
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
bpmn-js-properties-panel
should be a normal "dependency"
#113
Comments
Hi, thanks for creating this issue. I will try to explain why both the To start with, we want developers using At first, we included both projects as direct dependencies. This resulted in a structure of node_modules similar to one below:
When one added
Because With peer dependencies, the node_modules looks like this:
So we have only one instance of each dependencies which rely on context and hooks. Thus, extensibility is maintained. If you have a better idea how to achieve this, we are happy to receive suggestions. |
@barmac - thank you for the detailed answer. I was asking if this was connected with the other issue and you linked it while I was typing. :) As for a better idea... I definitely don't have one. 😄 This is a very "hacky" way of making sure that the same preact context is used but I'm totally unfamiliar with both preact and writing plugins for bpmn-js so I really can't say more. I do understand your pain though and understand that this is the best you can do for now so thank you for the information! If you would like, let's leave the issue open so maybe someone someday has a solution in mind. :) |
Stupid question: Why not make |
The reason we decided against it is that if we make |
Describe the Bug
I'm not sure if I'm doing everything right but just adding
"camunda-bpmn-js": "0.13.0-alpha.8",
topackage.json
and trying out to use the Modeler fails becausebpmn-js-properties-panel
is missing. It is added as a peer dependency which means that it won't be installed byyarn
. I think it should be moved todependencies
.Steps to Reproduce
Expected Behavior
Environment
P.S. The same applies to
@bpmn-io/properties-panel
.The text was updated successfully, but these errors were encountered: