diff options
author | eric <thul.eric@gmail.com> | 2015-11-07 15:06:39 -0500 |
---|---|---|
committer | eric <thul.eric@gmail.com> | 2015-11-07 15:06:39 -0500 |
commit | d18adcf960b5df464971e7c06366feeb0d173f1b (patch) | |
tree | 6821a4e1fb1f5ab0c54f4e8434e1c5c717890967 /src/PursLoader/Loader.js | |
parent | 57585908acc300daa55b40156eeff7a065fe2832 (diff) | |
parent | 04eb392f345262e340717812e51a3ba810f7eaee (diff) | |
download | purs-loader-d18adcf960b5df464971e7c06366feeb0d173f1b.tar.gz purs-loader-d18adcf960b5df464971e7c06366feeb0d173f1b.tar.zst purs-loader-d18adcf960b5df464971e7c06366feeb0d173f1b.zip |
Merge pull request #30 from natefaubion/fix-paths
Fix paths
Diffstat (limited to 'src/PursLoader/Loader.js')
-rw-r--r-- | src/PursLoader/Loader.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/PursLoader/Loader.js b/src/PursLoader/Loader.js index 98459b6..45e9c2f 100644 --- a/src/PursLoader/Loader.js +++ b/src/PursLoader/Loader.js | |||
@@ -12,8 +12,18 @@ function relative(from) { | |||
12 | }; | 12 | }; |
13 | } | 13 | } |
14 | 14 | ||
15 | function joinPath(a) { | ||
16 | return function(b) { | ||
17 | return path.join(a, b); | ||
18 | }; | ||
19 | } | ||
20 | |||
15 | exports.cwd = cwd; | 21 | exports.cwd = cwd; |
16 | 22 | ||
17 | exports.relative = relative; | 23 | exports.relative = relative; |
18 | 24 | ||
25 | exports.joinPath = joinPath; | ||
26 | |||
19 | exports.resolve = path.resolve; | 27 | exports.resolve = path.resolve; |
28 | |||
29 | exports.dirname = path.dirname; | ||