Building a package that have dependency on either library x or library y

14 views
Skip to first unread message

Ahmad El-Alfy

unread,
May 12, 2014, 3:35:14 PM5/12/14
to twitte...@googlegroups.com

I am trying to build a package using bower that will require bootstrap. At the moment there are 2 trees for bootstrap, the original Less version and the new Sass version. How can I add in the package dependency that it should look for either version of bootstrap?

So instead of:

"dependencies": {
    "bootstrap": ">= 3.0.0"
}

To be something like:

(this is a pseudo code, it wont work)

"dependencies": {
    "bootstrap": ">= 3.0.0" || "bootstrap-sass-official": ">= 3.0.0"
}

Can this be done?


Reply all
Reply to author
Forward
0 new messages