Skip to content

Commit

Permalink
Merge pull request #65 from renanbandeira/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
obahareth committed Jul 21, 2021
2 parents 9ec20a7 + 39e8bb4 commit 8ab2e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class ModulesChecker {
throw new Error(`Failed to load package.json in ${this.dir}`)
}

return Object.keys(packageJson.dependencies)
return Object.keys(packageJson.dependencies || {})
}

private getAllNodeModules(): string[] | null {
Expand Down

0 comments on commit 8ab2e14

Please sign in to comment.