aboutsummaryrefslogtreecommitdiffstats
path: root/build/post-compile.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/post-compile.js')
-rw-r--r--build/post-compile.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/build/post-compile.js b/build/post-compile.js
index afcebf278..f77a38bdc 100644
--- a/build/post-compile.js
+++ b/build/post-compile.js
@@ -1,7 +1,6 @@
#!/usr/bin/env node
-var print = require( "sys" ).print,
- fs = require( "fs" ),
+var fs = require( "fs" ),
src = fs.readFileSync( process.argv[2], "utf8" ),
version = fs.readFileSync( "version.txt", "utf8" ),
// License Template
@@ -17,4 +16,4 @@ license = license.replace( "@VERSION", version );
// Replace license block with minimal license
src = src.replace( /\/\/.*?\/?\*.+?(?=\n|\r|$)|\/\*[\s\S]*?\/\/[\s\S]*?\*\//, license );
-print( src );
+fs.writeFileSync( "dist/jquery.min.js", src, "utf8" );