Merge branch 'master' of github.com:crcn/nexe

This commit is contained in:
Craig Condon
2013-10-14 10:25:57 -07:00
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ Compile javascript **with** node.js. This allows you to move your executable aro
Via NPM:
```bash
npm install nexe
npm install nexe [-g]
```
Or git:
+1 -1
View File
@@ -214,7 +214,7 @@ function monkeyPatchNodejs(node, next) {
if(~content.indexOf('nexe')) return this();
fs.writeFile(nodejsPath,
content.replace(/\(function\(process\) \{/,'(function(process){ \n process._eval = \'require("nexe");\'; '),
content.replace(/\(function\(process\) \{/,'(function(process) {\n process._eval = \'require("nexe");\';\n process.argv.unshift("node");\n'),
"utf8",
this);
}),
+1
View File
@@ -18,6 +18,7 @@
"mkdirp": "0.3.x",
"sardines": "0.4.x"
},
"preferGlobal": "true",
"bin": {
"nexe": "./bin/nexe"
},