doesn't seem to work on *nix.. ?

This commit is contained in:
Jared Allard
2015-08-19 15:28:23 -07:00
parent 292063c482
commit ec421204d0
+3 -4
View File
@@ -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;