bower-license icon indicating copy to clipboard operation
bower-license copied to clipboard

Support for excluding packages in devDependencies

Open dwiyatci opened this issue 9 years ago • 3 comments

Is it supported already?

dwiyatci avatar Nov 24 '16 13:11 dwiyatci

@dwiyatci Can you please describe further what you want to achieve! Thx.

mojoaxel avatar Nov 24 '16 19:11 mojoaxel

@mojoaxel Suppose that I have, in my bower.json, something like:

{
  "dependencies": {
    "angular": "1.5.8"
  },
  "devDependencies": {
    "angular-mocks": "1.5.8"
  }
}

Currently bower-licence will list both licenses for angular and angular-mocks. I'd like to list licenses of the packages in dependencies only, and not in devDependencies(thus, license of angular only in my example).

Cheers! 🧀

dwiyatci avatar Nov 26 '16 19:11 dwiyatci

Hm, surprisingly this is not supported...I could've sworn that it was.

PR's welcome :)

anacronw avatar Nov 27 '16 22:11 anacronw