Permalink
Browse files

export console

  • Loading branch information...
1 parent f9f9e94 commit c2d54c18d15847f10b4fd01b1840bbb4d6d4814a @substack committed Jun 13, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 index.js
View
@@ -3,7 +3,7 @@ var prompter = require('prompter');
var merge = require('merge');
var spawn = require('child_process').spawn;
var exec = require('child_process').exec;
-var edit = require('editor');
+var editor = require('editor');
var fs = require('fs');
var path = require('path');
@@ -21,7 +21,8 @@ exports = module.exports = function (opts, cb) {
return require(path.resolve(opts.configDir, name))
}
else return require(name)
- }
+ },
+ console : console,
}, opts.context || {});
mkdirp(opts.configDir, function (err) {
@@ -86,7 +87,7 @@ PkgInit.prototype.edit = function (name, opts, cb) {
if (!opts) opts = {};
var file = this.filename(name);
- edit(file, opts, function (code, sig) {
+ editor(file, opts, function (code, sig) {
if (typeof cb === 'function') cb(code, sig)
});
};

0 comments on commit c2d54c1

Please sign in to comment.