]> source.dussan.org Git - jquery-ui.git/commitdiff
Build/grunt: Can use config('pkg.version'), now was fixed in grunt
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 9 Mar 2012 15:25:51 +0000 (16:25 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 9 Mar 2012 15:25:51 +0000 (16:25 +0100)
grunt.js

index b60ac9e672cb41736805e747ec7ae1b7f2127ef8..a2929ff286d1292c14837e16a385aa92c5990368 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -254,7 +254,7 @@ config('files', files);
 
 task.registerBasicTask('copy', 'Copy files to destination folder and replace @VERSION with pkg.version', function(data) {
   function replaceVersion(source) {
-      return source.replace("@VERSION", config("pkg").version);
+      return source.replace("@VERSION", config("pkg.version"));
   }
   var files = file.expand(data.src);
   var target = data.dest + '/';