Answer the question
In order to leave comments, you need to log in
Is it possible to somehow prevent a package from being installed with another package of a certain version?
Good day.
I have several npm packages, versioned by semver. However, sometimes it happens that conflicts arise between minor versions of these packages, i.e. some specific versions are incompatible with each other. I would like to control this not at the level of the project in which they are used (it may not be my project), but at the level of the package itself, to somehow explicitly show that the 2.0.0 version of the foo package is incompatible with the 1.12 version of the bar package. nine. At the same time, I did not find anything in package.json that could help - only engine and os can be specified there, but there is no analogue of such options for ordinary dependencies.
I would also like to use dependabot to automatically update these packages in the project. How will he understand if the packages are compatible with each other? By major versions of semver? How to bump major versions?
Prompt, please, in what direction to dig.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question