Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Commit

Permalink
fix list packages (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
amiramw authored and bfitzpat committed Sep 11, 2019
1 parent c88b896 commit 9d9c15a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yo/yo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ export default class Yeoman {
const name = key.split(':')[0];

const pkgPath = readPkgUp.sync({cwd: item.resolved});
if (!pkgPath.pkg) {
if (!pkgPath.package) {
return null;
}

const pkg = pkgPath.pkg;
const pkg = pkgPath.package;
const generatorVersion: any = pkg.dependencies['yeoman-generator'];
const generatorMeta: any = _.pick(pkg, 'name', 'version', 'description');

Expand Down

0 comments on commit 9d9c15a

Please sign in to comment.