fix #26 - should resolve to absolute path unless / is the first character
This commit is contained in:
@@ -32,7 +32,8 @@ if(argv.h || argv.help) {
|
||||
|
||||
|
||||
function toRelative(pt) {
|
||||
return path.normalize(pt.replace(/^\./, process.cwd() + "/."));
|
||||
if(pt.substr(0, 1) == "/") return pt;
|
||||
return path.join(process.cwd(), pt);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -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.2.1",
|
||||
"version": "0.2.2",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/crcn/nexe.git"
|
||||
@@ -22,4 +22,4 @@
|
||||
"nexe": "./bin/nexe"
|
||||
},
|
||||
"devDependencies": {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user