doesn't seem to work on *nix.. ?
This commit is contained in:
+3
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user