Closed yibe closed 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.
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 {}.
dependencies
devDependencies
{}
Thanks for this fix!
With the includeDev option set and the following bower.json given:
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 pushdevDependencies
into it. This patch gives it a default of{}
.