From fe8dafe957d6e06412b86252a4ea8fa721196a10 Mon Sep 17 00:00:00 2001 From: Joseph Dykstra Date: Sat, 21 Mar 2015 21:36:25 -0500 Subject: [PATCH] removed dotfile --- bin/cmd.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/bin/cmd.js b/bin/cmd.js index bd0a1b1..8a1433a 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -15,7 +15,6 @@ if (!outfile) { console.error('You MUST specify an outfile with -o.'); process.exit(1); } -var dotfile = path.join(path.dirname(outfile), '.' + path.basename(outfile)); w.on('update', bundle); bundle(); @@ -28,20 +27,17 @@ function bundle () { if (err) console.error(err); }) }); - wb.pipe(fs.createWriteStream(dotfile)); + wb.pipe(fs.createWriteStream(outfile)); var bytes, time; w.on('bytes', function (b) { bytes = b }); w.on('time', function (t) { time = t }); wb.on('end', function () { - fs.rename(dotfile, outfile, function (err) { - if (err) return console.error(err); - if (verbose) { - console.error(bytes + ' bytes written to ' + outfile - + ' (' + (time / 1000).toFixed(2) + ' seconds)' - ); - } - }); + if (verbose) { + console.error(bytes + ' bytes written to ' + outfile + + ' (' + (time / 1000).toFixed(2) + ' seconds)' + ); + } }); }