diff --git a/bin/nexe b/bin/nexe index 9d12495..0456b26 100755 --- a/bin/nexe +++ b/bin/nexe @@ -68,21 +68,10 @@ if (argv.h || argv.help) { process.exit(); } -/** - * TODO: Support network shares? - **/ function toAbsolute(pt) { - //already resolved? - try{ - fs.accessSync(pt,fs.F_OK); - return pt; - }catch(e){} - - if (pt.substr(0, 1) == "/") return pt; // for *nix "/" - if (pt.substr(0, 2) == "\\\\") return pt; // for windows "\\" - if (pt.substr(1, 3) == ":/") return pt; // for windows "c:/" - - // otherwise... + if (path.isAbsolute(pt)) { + return pt + } return path.join(process.cwd(), pt); } @@ -94,9 +83,6 @@ if (fs.lstatSync(argv.i).isDirectory()) { } }); } else { - /** - * Call the core - **/ nexe.compile({ input: require.resolve(toAbsolute(argv.i)), output: toAbsolute(argv.o), diff --git a/package.json b/package.json index 72ea79b..0eb62a2 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "nexe", "description": "create single executables out of your [node/io].js applications", "license": "MIT", - "version": "1.1.2", + "version": "1.1.6", "contributors": [ { "name": "Criag Condon",