aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoreric thul <thul.eric@gmail.com>2014-11-20 16:23:38 -0500
committereric thul <thul.eric@gmail.com>2014-11-20 16:23:38 -0500
commit63ecec203a89b3084b3f3518063998e23a29a83b (patch)
tree437d0b5cc2c3c7404257d622713e224b8acbcba7
parent1fa7e1e6e5a953d6cce85bb8a822ab857f68b58d (diff)
downloadpurs-loader-63ecec203a89b3084b3f3518063998e23a29a83b.tar.gz
purs-loader-63ecec203a89b3084b3f3518063998e23a29a83b.tar.zst
purs-loader-63ecec203a89b3084b3f3518063998e23a29a83b.zip
Obtaining output directory
Resolves issues #2
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
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){
37 if (e) callback(e); 37 if (e) callback(e);
38 else { 38 else {
39 var module = path.basename(request, '.purs'); 39 var module = path.basename(request, '.purs');
40 fs.readFile(path.join(opts[OPTIONS[OUTPUT]] || OUTPUT, module, 'index.js'), 'utf-8', function(e, output){ 40 fs.readFile(path.join(query[OUTPUT] || OUTPUT, module, 'index.js'), 'utf-8', function(e, output){
41 if (e) callback(e); 41 if (e) callback(e);
42 else callback(e, output); 42 else callback(e, output);
43 }); 43 });