When expressing the dependencies of a Debian package, you can use syntax like exim | mail-transport-agent
to indicate that your package needs either exim
or mail-transport-agent
, but it doesn't care which.
I want to express something similar in NPM. Is there a way to do it? Specifically suppose I want my application to express a dependency on either mikesthing-impl1
v1.7 better or mikesthing-impl2
v2.1 or better. I'd like to be able to say something like:
dependencies: {
"mikesthing": {
"mikesthing-impl1": "^1.7",
"mikesthing-impl2": "^2.1"
}
}
Is there a way?