ck86 / gulp-bower-files

Build gulp.src() of your bower packages main files.
80 stars 13 forks source link

Fix crash when collecting devDependencies #30

Closed yibe closed 10 years ago

yibe commented 10 years ago

With the includeDev option set and the following bower.json given:

{
    "name": "foo",
    "devDependencies": {
        "mocha": "*"
    }
}

gulp dies with Cannot set property 'mocha' of undefined.

This is because the current code expects a dependencies section to be provided in bower.json and tries to push devDependencies into it. This patch gives it a default of {}.

ck86 commented 10 years ago

Thanks for this fix!