diff options
author | eric thul <thul.eric@gmail.com> | 2014-11-20 16:23:38 -0500 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2014-11-20 16:23:38 -0500 |
commit | 63ecec203a89b3084b3f3518063998e23a29a83b (patch) | |
tree | 437d0b5cc2c3c7404257d622713e224b8acbcba7 | |
parent | 1fa7e1e6e5a953d6cce85bb8a822ab857f68b58d (diff) | |
download | purs-loader-63ecec203a89b3084b3f3518063998e23a29a83b.tar.gz purs-loader-63ecec203a89b3084b3f3518063998e23a29a83b.tar.zst purs-loader-63ecec203a89b3084b3f3518063998e23a29a83b.zip |
Obtaining output directory
Resolves issues #2
-rw-r--r-- | index.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | }); |