From ec421204d08a9687d9aa9c6d123d9c70d9ea0488 Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Wed, 19 Aug 2015 15:28:23 -0700 Subject: [PATCH] doesn't seem to work on *nix.. ? --- lib/bundle.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/bundle.js b/lib/bundle.js index 39cb104..befc31f 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -43,15 +43,15 @@ function bundle (input, nc, complete) { var bundlePath = path.join(nc, "lib", "nexe.js"); var ws = fs.createWriteStream(bundlePath); - if(fs.existsSync(bundlePath)) { + /*if(fs.existsSync(bundlePath)) { fs.unlinkSync(bundlePath); - } + }*/ b.add(input); // add the file. var bfs = b.bundle(); // open the bundle stream. bfs.pipe(ws); // pipe it to the write stream we created earlier - + ws.on('close', function() { // may need to be added later // source = source.replace(/[^\x00-\x7F]/g, ""); @@ -59,5 +59,4 @@ function bundle (input, nc, complete) { }) } - module.exports = bundle;