properly parse relative path

This commit is contained in:
Craig Condon
2013-02-01 11:36:47 -08:00
parent f1a0eb88fd
commit bea9181be6
4 changed files with 8 additions and 3 deletions
View File
+6 -1
View File
@@ -23,8 +23,13 @@ options('r', {
}).argv;
function toRelative(pt) {
return path.normalize(pt.replace(/^\.\//, process.cwd() + "/"));
}
require('../lib').compile({ input: argv.i, output: argv.o, runtime: argv.r }, function(error) {
require('../lib').compile({ input: toRelative(argv.i), output: toRelative(argv.o), runtime: argv.r }, function(error) {
if(error) console.log(error.message);
});
+1 -1
View File
@@ -1,2 +1,2 @@
all:
nexe -o ./hello-world.nex
nexe -i ./index.js -o ./hello-world.nex -r 0.8.18
+1 -1
View File
@@ -2,7 +2,7 @@
"author": "Craig Condon <craig.j.condon@gmail.com>",
"name": "nexe",
"description": "Roll node.s applications into a single executable",
"version": "0.1.0",
"version": "0.1.1",
"repository": {
"type": "git",
"url": "git://github.com/crcn/nexe.git"