properly parse relative path
This commit is contained in:
@@ -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,2 +1,2 @@
|
||||
all:
|
||||
nexe -o ./hello-world.nex
|
||||
nexe -i ./index.js -o ./hello-world.nex -r 0.8.18
|
||||
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user