From a4d90ab5d813e239f231e7d70c939bab909fd410 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Thu, 19 Sep 2013 09:06:19 -0400 Subject: [PATCH] Update release script for sourcmap syntax change (cherry picked from commit d79c036ad6cbf0da3593da98410f17bb6b272639) --- build/release.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/release.js b/build/release.js index d4161cdbc..3e6a72448 100644 --- a/build/release.js +++ b/build/release.js @@ -118,7 +118,7 @@ function checkGitStatus( next ) { dieIfReal( "Branches don't match: Wanted " + branch + ", got " + onBranch ); } if ( /Changes to be committed/i.test( stdout ) ) { - dieIfReal( "Please commit changed files before attemping to push a release." ); + dieIfReal( "Please commit changed files before attempting to push a release." ); } if ( /Changes not staged for commit/i.test( stdout ) ) { dieIfReal( "Please stash files before attempting to push a release." ); @@ -166,10 +166,10 @@ function makeReleaseCopies( next ) { } else if ( /\.min\.js$/.test( releaseFile ) ) { // Minified files point back to the corresponding map; // again assume one big happy directory. - // "//@ sourceMappingURL=jquery.min.map" + // "//# sourceMappingURL=jquery.min.map" text = fs.readFileSync( builtFile, "utf8" ) - .replace( /\/\/@ sourceMappingURL=\S+/, - "//@ sourceMappingURL=" + unpathedFile.replace( /\.js$/, ".map" ) ); + .replace( /\/\/# sourceMappingURL=\S+/, + "//# sourceMappingURL=" + unpathedFile.replace( /\.js$/, ".map" ) ); fs.writeFileSync( releaseFile, text ); } else if ( builtFile !== releaseFile ) { copy( builtFile, releaseFile ); -- 2.39.5