Cleanup build files.

Former-commit-id: d19939a34688a8a63979f84eb1a5c5f9c926897b
This commit is contained in:
John-David Dalton
2012-09-30 01:55:26 -07:00
parent de821e55ae
commit 9cc11b8774
4 changed files with 25 additions and 19 deletions

View File

@@ -62,7 +62,11 @@
// was invoked directly (e.g. `node post-compile.js source.js`) and write to
// the same file
(function() {
var filePath = process.argv[2],
var options = process.argv;
if (options.length < 3) {
return;
}
var filePath = options[options.length - 1],
source = fs.readFileSync(filePath, 'utf8');
fs.writeFileSync(filePath, postprocess(source), 'utf8');