Skip to content

Commit

Permalink
Fix build for jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Aug 15, 2013
1 parent 6318ae6 commit b7b50a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, "" );
Expand Down

0 comments on commit b7b50a7

Please sign in to comment.