I'm not a fan of that magic either. I can submit a PR for that tomorrow.
On Apr 13, 2013 6:25 PM, "Sindre Sorhus" <notifications@github.com> wrote:

> In lib/actions/prompt.js:
>
> >  //
> >  // - prompts    - A single or an Array of Hash options.
> >  // - done       - Callback to call on error or on completion.
> >  //
> >  // Returns the generator instance.
> > -prompt.prompt = function prompt(prompts, done) {
> > +exports.prompt = function prompt(prompts, done) {
>
> Maybe the answer is that the generator shouldn't merge it automatically in?
>
> Would rather see something like:
>
> generator.prompt = require('./actions/prompt');
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/yeoman/generator/pull/213/files#r3783932>
> .
>