AceMetrix / bower-license

Generates a list of bower dependencies
Apache License 2.0
15 stars 29 forks source link

if licenses array only contains one license remove the array #3

Closed mojoaxel closed 9 years ago

mojoaxel commented 10 years ago

BUGFIX: enhance with package-license instead of overwriting

Well defined licenses (e.g. from bower.json) got overwritten by package-licenses. This is actually a bug. Because I fixed this I had to remove licenses with asterisk if the same license already exists.

If licenses array only contains one license remove the array

e.g. jquery-ui would return:

    "jquery-ui@1.11.1": {
        "licenses": [
            "MIT"
        ],
        "repository": "https://github.com/jquery/jquery-ui"
    },

i changed this to:

    "jquery-ui@1.11.1": {
        "licenses": "MIT",
        "repository": "https://github.com/jquery/jquery-ui"
    },