Skip to content

Commit

Permalink
fix(utils): avoid error on deps[type] (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux authored Jun 11, 2020
1 parent e59a774 commit ff2c9be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/get-dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function getDependencies (rootDir: string) {

// Read each dependency package.json to get exact installed version
for (const type of ['dependencies', 'devDependencies']) {
deps[type] = deps[type] || {}
for (const _name in pkg[type] || {}) {
try {
const { name, version } = _require(
Expand Down

0 comments on commit ff2c9be

Please sign in to comment.