From a400a735ec2ca87bace8d23f71d05b74ed0af561 Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 30 Apr 2015 03:08:24 +0400 Subject: [PATCH] properly pass cwd to cli installer process --- configs/cli.js | 11 ++++++----- package.json | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/configs/cli.js b/configs/cli.js index 9df5c891..8d95eff0 100644 --- a/configs/cli.js +++ b/configs/cli.js @@ -1,11 +1,12 @@ module.exports = function(options) { +// workaround for api difference between node and c9 events modules var EventEmitter = require("events").EventEmitter; -EventEmitter.prototype.emit = new Function("type", - EventEmitter.prototype.emit.toString() - .replace(/return false/g, "return") - .replace(/^[^{]*{/, "") - .replace(/\}$/, "")); +var emit_ = EventEmitter.prototype.emit +EventEmitter.prototype.emit = function() { + emit_.apply(this, arguments); + return true; +} var PID = process.env.C9_PID || 526; var APIHOST = process.env.C9_APIHOST || "api.c9.io"; // "api.c9.io"; diff --git a/package.json b/package.json index ed158aa2..629e7b76 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "c9.ide.help.support": "#60e88f5680", "c9.ide.imgeditor": "#08bbc53578", "c9.ide.immediate": "#6845a93705", - "c9.ide.installer": "#80d050b6de", + "c9.ide.installer": "#a1e01c07a3", "c9.ide.mount": "#32e79866ee", "c9.ide.navigate": "#64156c7f4a", "c9.ide.newresource": "#f1f0624768",