Fix build for jenkins

This commit is contained in:
Timmy Willison 2013-08-15 15:56:47 -04:00
parent 6318ae6ab9
commit b7b50a7d5f

View File

@ -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, "" );