From: eric thul Date: Thu, 20 Nov 2014 21:23:38 +0000 (-0500) Subject: Obtaining output directory X-Git-Tag: 0.0.2~1^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=63ecec203a89b3084b3f3518063998e23a29a83b;p=github%2Ffretlink%2Fpurs-loader.git Obtaining output directory Resolves issues #2 --- diff --git a/index.js b/index.js index 5355f2f..07988a2 100644 --- a/index.js +++ b/index.js @@ -37,7 +37,7 @@ module.exports = function(source){ if (e) callback(e); else { var module = path.basename(request, '.purs'); - fs.readFile(path.join(opts[OPTIONS[OUTPUT]] || OUTPUT, module, 'index.js'), 'utf-8', function(e, output){ + fs.readFile(path.join(query[OUTPUT] || OUTPUT, module, 'index.js'), 'utf-8', function(e, output){ if (e) callback(e); else callback(e, output); });