Skip to content
Permalink
Browse files

Fix build for jenkins

  • Loading branch information...
timmywil committed Aug 15, 2013
1 parent 6318ae6 commit b7b50a7d5f3aef469dfdbde56b30d1349b97436b
Showing with 2 additions and 1 deletion.
  1. +2 −1 build/build.js
@@ -34,8 +34,9 @@ module.exports = function( grunt ) {
* @param {String} contents The contents to be written (including their AMD wrappers)
*/
function convert( name, path, contents ) {
console.log( path );
// Convert var modules
if ( /\/var\//.test( path ) ) {
if ( /.\/var\//.test( path ) ) {
contents = contents
.replace( /define\([\w\W]*?return/, "var " + (/var\/([\w-]+)/.exec(name)[1]) + " =" )
.replace( rdefineEnd, "" );

0 comments on commit b7b50a7

Please sign in to comment.
You can’t perform that action at this time.