Skip to content

Commit

Permalink
fix node incompatibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Hargrove committed Apr 19, 2018
1 parent 0c47aa8 commit eac714f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rules/no-extraneous-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ function getDependencies(context, packageDir) {
const manifest = extractDependencies(
JSON.parse(fs.readFileSync(path.join(dir, 'package.json'), 'utf8'))
)
for (const [depType, deps] of Object.entries(manifest)) {
Object.assign(packageContent[depType], deps)
}
Object.keys(manifest).forEach(depType => {
Object.assign(packageContent[depType], manifest[depType])
})
}
}

if (!Object.values(packageContent).some(hasKeys)) {
if (!Object.keys(packageContent).some(depType => hasKeys(packageContent[depType]))) {
return null
}

Expand Down

0 comments on commit eac714f

Please sign in to comment.