Merge branch 'master' of github.com:crcn/nexe
This commit is contained in:
@@ -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
@@ -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);
|
||||
}),
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
"mkdirp": "0.3.x",
|
||||
"sardines": "0.4.x"
|
||||
},
|
||||
"preferGlobal": "true",
|
||||
"bin": {
|
||||
"nexe": "./bin/nexe"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user