package lime.tools.helpers;


import haxe.io.Path;
import lime.project.Architecture;
import lime.project.Haxelib;
import lime.project.HXProject;
import lime.project.Platform;


class NodeJSHelper {
	
	
	public static function run (project:HXProject, modulePath:String, args:Array<String> = null):Void {
		
		/*var suffix = switch (PlatformHelper.hostPlatform) {
			
			case Platform.WINDOWS: "-windows.exe";
			case Platform.MAC: "-mac";
			case Platform.LINUX: "-linux";
			default: return;
			
		}
		
		if (suffix == "-linux") {
			
			if (PlatformHelper.hostArchitecture == Architecture.X86) {
				
				suffix += "32";
				
			} else {
				
				suffix += "64";
				
			}
			
		}
		
		var templatePaths = [ PathHelper.combine (PathHelper.getHaxelib (new Haxelib ("lime")), "templates") ].concat (project.templatePaths);
		var node = PathHelper.findTemplate (templatePaths, "bin/node/node" + suffix);
		
		if (PlatformHelper.hostPlatform != Platform.WINDOWS) {
			
			Sys.command ("chmod", [ "+x", node ]);
			
		}
		
		if (args == null) {
			
			args = [];
			
		}*/
		
		args.unshift (Path.withoutDirectory (modulePath));
		
		//ProcessHelper.runCommand (Path.directory (modulePath), node, args);
		ProcessHelper.runCommand (Path.directory (modulePath), "iojs", args);
		
	}
	
	
}
package lime.tools.helpers;


import haxe.io.Path;
import lime.project.Architecture;
import lime.project.Haxelib;
import lime.project.HXProject;
import lime.project.Platform;


class NodeJSHelper {
	
	
	public static function run (project:HXProject, modulePath:String, args:Array<String> = null):Void {
		
		/*var suffix = switch (PlatformHelper.hostPlatform) {
			
			case Platform.WINDOWS: "-windows.exe";
			case Platform.MAC: "-mac";
			case Platform.LINUX: "-linux";
			default: return;
			
		}
		
		if (suffix == "-linux") {
			
			if (PlatformHelper.hostArchitecture == Architecture.X86) {
				
				suffix += "32";
				
			} else {
				
				suffix += "64";
				
			}
			
		}
		
		var templatePaths = [ PathHelper.combine (PathHelper.getHaxelib (new Haxelib ("lime")), "templates") ].concat (project.templatePaths);
		var node = PathHelper.findTemplate (templatePaths, "bin/node/node" + suffix);
		
		if (PlatformHelper.hostPlatform != Platform.WINDOWS) {
			
			Sys.command ("chmod", [ "+x", node ]);
			
		}
		
		if (args == null) {
			
			args = [];
			
		}*/
		
		args.unshift (Path.withoutDirectory (modulePath));
		
		ProcessHelper.runCommand (Path.directory (modulePath), "node", args);
		
	}
	
	
}
Use "node" instead of "iojs"
Use "node" instead of "iojs"

madrazo/lime-1,MinoGames/lime,openfl/lime,MinoGames/lime,madrazo/lime-1,openfl/lime,MinoGames/lime,fbricker/lime,fbricker/lime,player-03/lime,fbricker/lime,openfl/lime,fbricker/lime,madrazo/lime-1,openfl/lime,openfl/lime,player-03/lime,fbricker/lime,player-03/lime,madrazo/lime-1,player-03/lime,player-03/lime,fbricker/lime,fbricker/lime,MinoGames/lime,madrazo/lime-1,madrazo/lime-1,MinoGames/lime,openfl/lime,madrazo/lime-1,MinoGames/lime,player-03/lime,MinoGames/lime,player-03/lime,openfl/lime