/*
================================================

███████╗██╗██████╗ ███████╗███████╗██╗  ██╗   ██╗    
██╔════╝██║██╔══██╗██╔════╝██╔════╝██║  ╚██╗ ██╔╝    
█████╗  ██║██████╔╝█████╗  █████╗  ██║   ╚████╔╝     
██╔══╝  ██║██╔══██╗██╔══╝  ██╔══╝  ██║    ╚██╔╝      
██║     ██║██║  ██║███████╗██║     ███████╗██║       
╚═╝     ╚═╝╚═╝  ╚═╝╚══════╝╚═╝     ╚══════╝╚═╝       

========== Server Initialization ===============
*/

// IISNode doesn't have a functional process.stdin
// Replace it so things dont complain
if(process.env.IISNODE_VERSION){ 
	process.__defineGetter__('stdin', function(){});
}

// This project uses TypeScript
// We compile at runtime
require('typescript-require')({
    nodeLib: false,
    targetES5: true,
    exitOnError: true
});

// Make sure we dont have any old pre-compiled scripts
// Rimraf is essentially rm -rf
require("rimraf").sync("./tmp/");

// This script is the node entry point
// But everything cool happens in firefly.ts
require("./firefly.ts");
/*
================================================

███████╗██╗██████╗ ███████╗███████╗██╗  ██╗   ██╗    
██╔════╝██║██╔══██╗██╔════╝██╔════╝██║  ╚██╗ ██╔╝    
█████╗  ██║██████╔╝█████╗  █████╗  ██║   ╚████╔╝     
██╔══╝  ██║██╔══██╗██╔══╝  ██╔══╝  ██║    ╚██╔╝      
██║     ██║██║  ██║███████╗██║     ███████╗██║       
╚═╝     ╚═╝╚═╝  ╚═╝╚══════╝╚═╝     ╚══════╝╚═╝       

========== Server Initialization ===============
*/

process.stdin = function(){};

// This project uses TypeScript
// We compile at runtime
require('typescript-require')({
    nodeLib: false,
    targetES5: true,
    exitOnError: true
});

// Make sure we dont have any old pre-compiled scripts
// Rimraf is essentially rm -rf
require("rimraf").sync("./tmp/");

// This script is the node entry point
// But everything cool happens in firefly.ts
require("./firefly.ts");
--- 
+++ 
@@ -11,7 +11,11 @@
 ========== Server Initialization ===============
 */
 
-process.stdin = function(){};
+// IISNode doesn't have a functional process.stdin
+// Replace it so things dont complain
+if(process.env.IISNODE_VERSION){ 
+	process.__defineGetter__('stdin', function(){});
+}
 
 // This project uses TypeScript
 // We compile at runtime
Replace process.stdin getter on IISNode
