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

@@ -56,7 +56,7 @@
if (module != require.main) {
module.exports = postprocess;
} 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 post-compile.js source.js`) and write to
// the same file
(function() {