From bf4b3a47383cfbcc0611fc8c9d06ffe2e45f2ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Pedro=20Bol=C3=ADvar=20Puente?= Date: Wed, 3 Jun 2015 19:49:27 +0200 Subject: [PATCH] Fix generated file would not link to the script instance correctly --- src/cli.litcoffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.litcoffee b/src/cli.litcoffee index 1c150c1..ae98dbc 100644 --- a/src/cli.litcoffee +++ b/src/cli.litcoffee @@ -278,7 +278,7 @@ extension for the main script, where `mixco.script.register` is called. \nMIXCO_SCRIPT_FILENAME = '#{file.path}';\n\n """ append = new Buffer """ - \n#{scriptName_} = require('#{moduleName_}'); + \n#{scriptName_} = require('#{moduleName_}').#{scriptName_}; /* End of Mixco generated script */ """ finish = (err, res) ->