]> source.dussan.org Git - jquery.git/commitdiff
Update release script for sourcmap syntax change
authorDave Methvin <dave.methvin@gmail.com>
Thu, 19 Sep 2013 13:06:19 +0000 (09:06 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 19 Sep 2013 13:06:19 +0000 (09:06 -0400)
build/release.js

index 886387995c6b76e970c220c0a32cb1b148ab74cf..e0780a012fc026df065af44e451fb0cd428a6c4a 100644 (file)
@@ -119,7 +119,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." );
@@ -167,10 +167,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 );