From 9d9c15aa218381fd6cdde672509596ecddf50d2c Mon Sep 17 00:00:00 2001 From: amiramw Date: Wed, 11 Sep 2019 19:17:22 +0300 Subject: [PATCH] fix list packages (#37) --- src/yo/yo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yo/yo.ts b/src/yo/yo.ts index ac7c694..e80f92d 100644 --- a/src/yo/yo.ts +++ b/src/yo/yo.ts @@ -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');