diff --git a/lib/bundle.js b/lib/bundle.js index e505d12..53fd0d8 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -47,7 +47,7 @@ function bundle(input, nc, options, complete) { let ws = fs.createWriteStream(bundlePath); - const igv = '__filename,__dirname,process'; + const igv = '__filename,__dirname,_process'; let insertGlobalVars = {}, wantedGlobalVars = igv.split(','); diff --git a/test/embeded-files/hw.txt b/test/embeded-files/hw.txt index bd5e3e2..27ba77d 100644 --- a/test/embeded-files/hw.txt +++ b/test/embeded-files/hw.txt @@ -1 +1 @@ -Hello, world! I'm in a file :) +true diff --git a/test/embeded-files/index.js b/test/embeded-files/index.js index 951b2ae..40c03ae 100644 --- a/test/embeded-files/index.js +++ b/test/embeded-files/index.js @@ -8,4 +8,4 @@ const nexeres = require('nexeres'); -console.log(nexeres.get('hw.txt').toString('ascii')) +process.stdout.write(nexeres.get('hw.txt').toString('ascii')); diff --git a/test/embeded-files/package.json b/test/embeded-files/package.json index 886b86f..fae99db 100644 --- a/test/embeded-files/package.json +++ b/test/embeded-files/package.json @@ -17,7 +17,7 @@ "excludes": [], "requires": [] }, - "temp": "src", + "temp": "../src", "debug": false, "runtime": { "framework": "node", diff --git a/test/express-test/bin/www b/test/express-test/bin/www index 058203c..bb55f20 100755 --- a/test/express-test/bin/www +++ b/test/express-test/bin/www @@ -90,5 +90,4 @@ function onListening() { debug('Listening on ' + bind); } -throw new Error('test'); -//# sourceMappingURL=./test.nex.map +console.log(true); diff --git a/test/flags-test/index.js b/test/flags-test/index.js index 71bd240..bf2016c 100644 --- a/test/flags-test/index.js +++ b/test/flags-test/index.js @@ -8,6 +8,6 @@ // "use strict"; w/o --use_strict - var isStrict = (function() { return !this; })(); + let isStrict = (function() { return !this; })(); console.log('test:strict-mode:status =', isStrict); diff --git a/test/flags-test/package.json b/test/flags-test/package.json index 31bb264..5d6ac2e 100644 --- a/test/flags-test/package.json +++ b/test/flags-test/package.json @@ -3,7 +3,7 @@ "nexe": { "input": "./index.js", "output": "test.nex", - "temp": "src", + "temp": "../src", "runtime": { "framework": "node", "version": "0.10.0", diff --git a/test/gulp-test-170/gulpfile.js b/test/gulp-test-170/gulpfile.js index 7819837..ec55609 100644 --- a/test/gulp-test-170/gulpfile.js +++ b/test/gulp-test-170/gulpfile.js @@ -1,7 +1,7 @@ "use strict"; -var gulp = require('gulp'); -var nexe = require('nexe'); +let gulp = require('gulp'); +let nexe = require('nexe'); gulp.task( "compile", ( callback ) => { let options = { diff --git a/test/gulp-test-170/index.js b/test/gulp-test-170/index.js index e9fe009..6e78620 100644 --- a/test/gulp-test-170/index.js +++ b/test/gulp-test-170/index.js @@ -1 +1,2 @@ -console.log('Hello, world!'); +// it probably executed. +console.log(true); diff --git a/test/ignoreFlags-test/index.js b/test/ignoreFlags-test/index.js index 4facaa7..dce1a19 100644 --- a/test/ignoreFlags-test/index.js +++ b/test/ignoreFlags-test/index.js @@ -8,7 +8,7 @@ // test.nex --help - var status = false; + let status = false; // console.log(process.argv); @@ -16,4 +16,4 @@ status = true; } - console.log('test:ignoreFlags:status =', status); + console.log(status); diff --git a/test/ignoreFlags-test/package.json b/test/ignoreFlags-test/package.json index 09c705b..7e34896 100644 --- a/test/ignoreFlags-test/package.json +++ b/test/ignoreFlags-test/package.json @@ -3,7 +3,7 @@ "nexe": { "input": "./index.js", "output": "test.nex", - "temp": "src", + "temp": "../src", "runtime": { "framework": "node", "version": "5.5.0", diff --git a/test/js-yaml-148/index.js b/test/js-yaml-148/index.js index 0222a41..6ebdaf5 100644 --- a/test/js-yaml-148/index.js +++ b/test/js-yaml-148/index.js @@ -1,3 +1,3 @@ require('js-yaml'); -console.log('hello world!'); +console.log(true); diff --git a/test/js-yaml-148/package.json b/test/js-yaml-148/package.json index 5b6f6f1..eb59f5c 100644 --- a/test/js-yaml-148/package.json +++ b/test/js-yaml-148/package.json @@ -14,6 +14,7 @@ "nexe": { "input": "index.js", "output": "test.nex", + "temp": "../src", "runtime": { "version": "5.5.0", "framework": "node"