Compare commits

..

1 Commits

Author SHA1 Message Date
calebboyd ba351e0e3a chore: publish 1.1.3 2017-07-05 23:19:54 -05:00
2 changed files with 18 additions and 4 deletions
+17 -3
View File
@@ -68,10 +68,21 @@ if (argv.h || argv.help) {
process.exit();
}
/**
* TODO: Support network shares?
**/
function toAbsolute(pt) {
if (path.isAbsolute(pt)) {
return 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...
return path.join(process.cwd(), pt);
}
@@ -83,6 +94,9 @@ if (fs.lstatSync(argv.i).isDirectory()) {
}
});
} else {
/**
* Call the core
**/
nexe.compile({
input: require.resolve(toAbsolute(argv.i)),
output: toAbsolute(argv.o),
+1 -1
View File
@@ -3,7 +3,7 @@
"name": "nexe",
"description": "create single executables out of your [node/io].js applications",
"license": "MIT",
"version": "1.1.6",
"version": "1.1.3",
"contributors": [
{
"name": "Criag Condon",