Skip to content

Commit

Permalink
[enh] #918 Bug if a plugin does not declare dependencies or ̀`devDe…
Browse files Browse the repository at this point in the history
…pendencies`
  • Loading branch information
c-geek committed May 31, 2017
1 parent 45c5879 commit 626a031
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ module.exports.statics = {
try {
const pjson = require(path.resolve('./package.json'))
// Look for compliant packages
const prodDeps = Object.keys(pjson.dependencies);
const devDeps = Object.keys(pjson.devDependencies);
const prodDeps = Object.keys(pjson.dependencies || {});
const devDeps = Object.keys(pjson.devDependencies || {});
duniterDeps = prodDeps.concat(devDeps)
} catch (e) { /* duniter as a dependency might not be run from an NPM project */ }
for(const dep of duniterDeps) {
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,8 @@ [email protected]:
underscore "1.8.3"

[email protected]:
version "1.3.4"
resolved "https://registry.yarnpkg.com/duniter-ui/-/duniter-ui-1.3.4.tgz#f0e969b30f5bb6076f122fdb119ffda120cf8a7c"
version "1.3.6"
resolved "https://registry.yarnpkg.com/duniter-ui/-/duniter-ui-1.3.6.tgz#862b59729c0acfc878e4164c3c600c576e95166e"
dependencies:
adm-zip "0.4.7"
body-parser "1.17.1"
Expand Down

0 comments on commit 626a031

Please sign in to comment.