npm/exe: check for lib/internal/boostrap_node.js, npm 1.1.2 fixes #207

This commit is contained in:
Jared Allard
2016-04-08 09:44:13 -07:00
committed by Jared Allard
parent da7b6af0fa
commit f6a18e18db
3 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -659,6 +659,11 @@ function _monkeyPatchGyp(compiler, complete) {
function _monkeyPatchMainJs(compiler, complete) {
var mainPath = path.join(compiler.dir, "src", "node.js");
if(!fs.existsSync(mainPath)) {
_log('warn', 'src/node.js doesn\'t exist. Trying \'lib/internal/bootstrap_node.js\'')
mainPath = path.join(compiler.dir, "lib/internal", "bootstrap_node.js");
}
_monkeypatch(
mainPath,
function(content) {
@@ -701,7 +706,7 @@ function _monkeyPatchChildProcess(compiler, complete) {
function _monkeyPatchMainCc(compiler, complete) {
let finalContents;
let mainPath = path.join(compiler.dir, "src", "node.cc");
let mainC = fs.readFileSync(mainPath, {
encoding: 'utf8'
+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.1",
"version": "1.1.2",
"contributors": [
{
"name": "Criag Condon",
+1 -1
View File
@@ -21,7 +21,7 @@
"debug": false,
"runtime": {
"framework": "node",
"version": "5.7.0",
"version": "5.10.0",
"ignoreFlags": true
}
}