yeoman/yo — pull request #119 by SBoudrias (2013-12-19 22:14:35+00:00)
Title: Fix generator listing

Refactor the way package.json lookup (for update notification) is done.

There was multiple bug with this piece of code. First of all, the regexp where wrong. Second, the check for package.json only worked for generators organized in this fashion:

```
- package.json
- app/
- subgenerator/
```

If the generator used other lookup directory, `yo` ignored them from its listing (you could still run it directly `yo bbb`).

That should fix it, plus, it simplify the logic.