Make build.js work as a npm executable.

Former-commit-id: fff327957854aa85a5abfe80994b59f3d0d24370
This commit is contained in:
John-David Dalton
2012-07-11 05:39:30 -04:00
parent 2ac887ff74
commit 5ca2da76df
4 changed files with 28 additions and 19 deletions

View File

@@ -196,7 +196,7 @@
/*--------------------------------------------------------------------------*/
/**
* Pre-process a given Lo-Dash source, preparing it for minification.
* Pre-process a given Lo-Dash `source`, preparing it for minification.
*
* @param {String} source The source to process.
* @returns {String} Returns the processed source.
@@ -361,7 +361,7 @@
module.exports = preprocess;
}
else {
// read the JavaScript source file from the first argument if the script
// read the Lo-Dash source file from the first argument if the script
// was invoked directly (e.g. `node pre-compile.js source.js`) and write to
// the same file
(function() {